/* AuthPages.css - Exact Design Styling for Sign In and Sign Up */

body.auth-page-bg {
    background-color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.auth-card-wrapper {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 48px 44px;
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.auth-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: #1d4ed8;
}

.auth-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0 28px 0;
}

.auth-form .form-group {
    margin-bottom: 22px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.auth-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.2px;
}

.auth-input {
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* Password Strength Meter (Sign Up) */
.strength-meter-container {
    margin-top: 12px;
    margin-bottom: 6px;
}

.strength-bars {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.strength-segment {
    height: 4px;
    flex: 1;
    background-color: #e2e8f0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

/* Strength Colors */
.strength-segment.active-weak {
    background-color: #ef4444; /* Red */
}

.strength-segment.active-fair {
    background-color: #f97316; /* Orange */
}

.strength-segment.active-good {
    background-color: #eab308; /* Yellow */
}

.strength-segment.active-strong {
    background-color: #22c55e; /* Green */
}

.strength-helper-text {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* Remember me */
.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    user-select: none;
}

.auth-remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.auth-remember-row span {
    font-size: 13px;
    color: #475467;
}

/* Buttons */
.btn-auth-primary {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: block;
    text-align: center;
}

.btn-auth-primary:hover {
    background-color: #1d4ed8;
}

.btn-auth-primary:active {
    transform: scale(0.99);
}

.btn-auth-narrow {
    max-width: 240px;
    margin: 28px auto 0 auto;
}

/* Alerts */
.auth-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

.auth-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}
