* { margin: 0; padding: 0; box-sizing: border-box; }

/* Full-page background — only covers the login section, not the entire viewport */
.auth-page-container {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    background-image: url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}
.auth-page-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(110, 8, 22, 0.74);
    z-index: 0;
}

/* Centered inner wrap */
.auth-page-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}
.auth-page-wrap {
    width: 100%;
    max-width: 1060px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* LEFT text */
.auth-left {
    flex: 1;
    max-width: 460px;
    color: #fff;
}
.auth-left-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}
.auth-left-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 26px;
}
.auth-left h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.auth-left p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 360px;
}

/* RIGHT form card */
.auth-right {
    flex-shrink: 0;
    width: 480px;
}
.auth-form-box {
    background: rgba(255,255,255,0.97);
    border-radius: 18px;
    padding: 36px 34px 30px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.32);
}
.auth-form-box h3 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 5px;
}
.auth-form-box .form-subtitle {
    font-size: 0.84rem;
    color: #777;
    margin-bottom: 22px;
}

/* Inputs */
.auth-input-group {
    position: relative;
    margin-bottom: 13px;
}
.auth-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e2e2;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #1a1a2e;
    background: #f7f7f7;
    transition: all 0.22s;
    outline: none;
}
.auth-input-group input::placeholder { color: #aaa; }
.auth-input-group input:focus {
    border-color: #A31D32;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(163,29,50,0.09);
}
.auth-input-group .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.auth-input-group .input-icon:hover { color: #A31D32; }

/* Remember + Forgot row */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 16px;
}
.auth-remember-row .remember-left {
    display: flex;
    align-items: center;
    gap: 7px;
}
.auth-remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #A31D32;
    cursor: pointer;
}
.auth-remember-row label {
    font-size: 0.82rem;
    color: #555;
    cursor: pointer;
    margin: 0;
}
.auth-forgot-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: #A31D32;
    text-decoration: none;
}
.auth-forgot-link:hover { text-decoration: underline; }

/* Sign In button */
.auth-btn {
    width: 100%;
    padding: 12px;
    background: #7a0d1c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s;
    box-shadow: 0 4px 16px rgba(120,10,25,0.32);
}
.auth-btn:hover {
    background: #600a17;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(120,10,25,0.42);
}
.auth-btn:active { transform: translateY(0); }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    font-size: 0.8rem;
    color: #aaa;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

/* Social buttons */
.auth-social-row {
    display: flex;
    gap: 10px;
}
.auth-alt-btn {
    flex: 1;
    padding: 10px 12px;
    background: #fff;
    color: #333;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
}
.auth-alt-btn:hover {
    border-color: #ccc;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}
.auth-alt-btn.fb-btn {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}
.auth-alt-btn.fb-btn:hover {
    background: #165FD8;
    border-color: #165FD8;
    color: #fff;
}

/* Footer text */
.auth-footer-text {
    text-align: center;
    font-size: 0.84rem;
    color: #777;
    margin-top: 18px;
}
.auth-footer-text a {
    color: #A31D32;
    font-weight: 700;
    text-decoration: none;
}
.auth-footer-text a:hover { text-decoration: underline; }

/* Validation */
.auth-input-group input.is-invalid {
    border-color: #A31D32 !important;
    box-shadow: 0 0 0 3px rgba(163,29,50,0.1) !important;
}
span.invalid-feedback {
    display: block;
    color: #A31D32;
    font-size: 0.74rem;
    margin-top: 4px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-page-wrap { flex-direction: column; align-items: center; gap: 30px; }
    .auth-left { max-width: 100%; text-align: center; }
    .auth-left h2 { font-size: 2rem; }
    .auth-left p { margin: 0 auto; }
    .auth-right { width: 100%; max-width: 420px; }
    .auth-page-inner { padding: 36px 20px; }
}
@media (max-width: 480px) {
    .auth-form-box { padding: 26px 18px 22px; }
    .auth-left h2 { font-size: 1.65rem; }
    .auth-social-row { flex-direction: column; }
}
