/**
 * Authentication Pages Stylesheet
 * Login and Register page styles
 */

@import 'theme.css';

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 20px;
    background: linear-gradient(135deg, #7c5f00 0%,#ff9900 100%);
}

.auth-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-header p {
    color: #475569;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: #cbd5e1;
}

.form-group small {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6366f1;
}

.form-group.checkbox label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

.error-message {
    font-size: 0.85rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ef4444;
}

.form-group.has-error .error-message {
    display: block;
}

.btn-block {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-light);
    margin: 0;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #dbeafe;
    color: #0c2d6b;
    border: 1px solid #bfdbfe;
}

.auth-footer p {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0.75rem 0;
}

.auth-footer a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #dc2626;
    text-decoration: underline;
}

.forgot-link {
    font-size: 0.9rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
        max-width: 100%;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-form {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem 15px;
        min-height: auto;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    .auth-header h1 {
        font-size: 1.25rem;
    }

    .auth-header p {
        font-size: 0.9rem;
    }

    .form-group {
        gap: 0.25rem;
    }
}
