/* Authentication Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    padding: 3rem 2rem;
    border: 1px solid var(--border);
}

.auth-form {
    animation: slideIn 0.3s ease-in-out;
}

.auth-form.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.auth-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--bg);
    color: var(--text);
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.1);
}

.form-group input::placeholder {
    color: var(--text);
    opacity: 0.5;
}

.form-group input[readonly] {
    opacity: 0.75;
    cursor: default;
}

.form-group input[readonly]:focus {
    box-shadow: none;
    border-color: var(--border);
}

.btn-submit {
    padding: 0.9rem;
    border: none;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: #00AA00;
}

.btn-submit:active {
    transform: scale(0.98);
}

.toggle-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.toggle-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: text-decoration 0.3s ease;
}

.toggle-text a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 3px solid #ff6b6b;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

.success-message {
    color: var(--primary-color);
    background-color: rgba(50, 205, 50, 0.1);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .btn-submit {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}