/**
 * assets/css/login.css - Authentication Pages
 */

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

.auth-wrapper {
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.1);
}

.auth-image {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(249, 115, 22, 0.8)), url('/assets/images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.auth-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.9), rgba(234, 88, 12, 0.85));
}

.auth-image-content {
    position: relative;
    z-index: 1;
}

.auth-image h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.auth-image p {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.6;
}

.auth-features {
    position: relative;
    z-index: 1;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-feature .icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.auth-form-wrapper {
    padding: 3rem;
}

.auth-form-wrapper h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.auth-form-wrapper .subtitle {
    color: #6b7280;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
}

.auth-form .input-wrapper {
    position: relative;
}

.auth-form .input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-form input.error {
    border-color: #dc2626;
}

.auth-form .error-message {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    display: none;
}

.auth-form input.error + .error-message {
    display: block;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.auth-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #9ca3af;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}

.auth-footer-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #2563eb;
}

.strength-meter {
    height: 4px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.strength-meter .bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-weak .bar { width: 25%; background: #dc2626; }
.strength-fair .bar { width: 50%; background: #f97316; }
.strength-good .bar { width: 75%; background: #fbbf24; }
.strength-strong .bar { width: 100%; background: #16a34a; }