/* ============================================
   RAM-YUM STORE — AUTH STYLESHEET
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 24px 16px;
}

.auth-card {
    background: #FFFFFF;
    padding: 44px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), 0 6px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 460px;
    text-align: center;
    border: 1px solid #E5E7EB;
}

[data-theme="dark"] .auth-card {
    background: #1E2433;
    border-color: #2D3748;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Logo */
.auth-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 18px;
    display: block;
    border-radius: 16px;
}

/* Title */
.auth-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .auth-title {
    color: #F1F5F9;
}

/* Subtitle */
.auth-subtitle {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 32px;
    font-weight: 400;
}

[data-theme="dark"] .auth-subtitle {
    color: #94A3B8;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

/* Labels — strong visibility */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

[data-theme="dark"] .form-label {
    color: #E2E8F0;
}

/* Inputs */
.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    background: #FFFFFF;
    color: #111827;
    box-sizing: border-box;
    line-height: 1.5;
    font-family: inherit;
}

.form-input::placeholder {
    color: #9CA3AF;
}

[data-theme="dark"] .form-input {
    background: #2D3748;
    border-color: #4A5568;
    color: #F1F5F9;
}

[data-theme="dark"] .form-input::placeholder {
    color: #718096;
}

.form-input:focus {
    outline: none;
    border-color: #B91C1C;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
    background: #FFFFFF;
}

[data-theme="dark"] .form-input:focus {
    background: #374151;
}

.form-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

/* Inline error messages */
.input-error-text {
    color: #DC2626;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
    display: none;
    text-align: left;
}

.form-input.error + .input-error-text,
.input-error-text.show {
    display: block;
}

/* Submit button */
.btn-primary {
    width: 100%;
    background-color: #B91C1C;
    color: #FFFFFF;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.04em;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #991B1B;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer links */
.auth-footer {
    margin-top: 22px;
    font-size: 0.9rem;
    color: #4B5563;
}

[data-theme="dark"] .auth-footer {
    color: #94A3B8;
}

.auth-footer a {
    color: #B91C1C;
    text-decoration: none;
    font-weight: 600;
}

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

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9CA3AF;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
    background: #2D3748;
}

/* Remember me + forgot row */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    font-weight: 500;
}

[data-theme="dark"] .auth-remember-label {
    color: #CBD5E1;
}

.auth-remember-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #B91C1C;
    cursor: pointer;
}

.auth-forgot-link {
    color: #B91C1C;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

/* Info / alert box */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 18px;
    text-align: left;
}

.auth-alert-info    { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.auth-alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.auth-alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.auth-alert-warning { background: #FFFBEB; color: #78350F; border: 1px solid #FDE68A; }

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 1.4rem;
    }
}
