* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.main-content {
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 180px 30px;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;       
    margin: 0;
    transition: background-color 0.5s ease, color 0.5s ease; 
}

.container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    width: 350px;
    text-align: center;
    max-height: 70vh; 
    overflow-y: auto;
    scrollbar-color: #007bff #2a2a2a;
}

h1 {
    font-size: 20px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    font-size: 14px;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

p {
    font-size: 14px;
}

p a {
    color: #00aaff;
    text-decoration: none;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}

.error {
    color: #ff4d4d;          
    font-size: 0.85rem;      
    margin-top: 4px;
    text-align: left; 
}

.form-group {
    margin-bottom: 1rem; 
    text-align: left;
}

.captcha img {
    margin-bottom: 10px;
    border-radius: 5px;
}

@media (max-width: 400px) {
    .container {
        width: 90%;
    }

    .nav a {
        width: auto; 
        padding: 6px 12px;
    }
}
