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

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.auth-header {
    background: var(--primary-600);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 2rem;
    text-align: center;
    color: white;
}

.auth-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.auth-header h2 {
    margin-bottom: 0.5rem;
    color: white;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.auth-body {
    padding: 2rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control-modern:hover {
    border-color: var(--primary-400);
    background-color: var(--bg-primary);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    background-color: var(--bg-primary);
}

.form-control-modern::placeholder {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
}

/* Textarea specific styling */
textarea.form-control-modern {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Select styling */
select.form-control-modern {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230ea5e9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    font-weight: 500;
}

select.form-control-modern:hover {
    border-color: var(--primary-500);
}

select.form-control-modern:focus {
    border-color: var(--primary-500);
}


.input-group-modern {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.input-group-modern .form-control-modern {
    padding-left: 2.75rem;
}

.btn-auth {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: 0.5rem;
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    color: white;
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-footer a {
    color: var(--primary-500);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--primary-500);
}

.form-check-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.form-check-modern input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--primary-500);
}

.form-check-modern label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.alert-modern {
    margin: 10px;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: start;
    flex-direction: column !important;

}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        margin: 0 1rem;
    }

    .auth-header {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .auth-body {
        padding: 1.5rem;
    }
}