/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #f5f7fb;
}

/* OUTER WRAPPER */
.auth-container {
    width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    display: flex;
    gap: 0;
    overflow: hidden;
    align-items: flex-start !important;
}

/* FIX → prevent stretching */
.auth-left,
.auth-right {
    align-self: flex-start !important;
}

/* LEFT SIDE */
.auth-left {
    width: 55%;
    padding: 40px;
    border-right: 1px solid #e6e6e6;
    min-height: 500px; /* Ensures height consistency */
}

/* RIGHT SIDE */
.auth-right {
    width: 45%;
    padding: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* LOGO & TEXT */
.sb-top-bar img {
    display: block;
    margin-bottom: 18px;
    height: 40px;
}

.sb-title {
    font-size: 24px !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem;
    color: #111;
}

.sb-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* DISCLAIMER */
.disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 2rem;
    line-height: 1.5;
}

.disclaimer a {
    color: #666;
    text-decoration: underline;
}

/* ========== BOX VISIBILITY LOGIC (CRITICAL FIX) ========== */

/* 1. Hide all boxes by default */
.sb-registration-box,
.sb-login-box,
.sb-reset-password-box,
.sb-reset-password-box-2 {
    display: none;
}

/* 2. Show only the box with 'active' class */
.sb-registration-box.active,
.sb-login-box.active,
.sb-reset-password-box.active,
.sb-reset-password-box-2.active {
    display: block;
    animation: fadeEffect 0.4s ease;
}

/* Fade animation for smoother switch */
@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== FORM STYLES ========== */

.sb-cloud-box {
    border: none !important;
    box-shadow: none !important;
    background: #fff;
    width: 100%;
}

/* Override admin box styles if they exist in other css files */
.sb-admin-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* INPUTS */
.sb-input {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 1rem;
    width: 100%;
}

.sb-input input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    line-height: 1.2;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.sb-input input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* BUTTONS */
.sb-bottom {
    margin-top: 1.5rem;
    text-align: center;
}

.sb-btn-login {
    width: 91%;
    background: #2563eb !important;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 1rem;
    border: none;
    display: block;
}
.sb-btn-reset {
    width: 27%;
    background: #2563eb !important;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 1rem;
    border: none;
    display: block;
}

.sb-btn-login:hover {
    background: #1d4ed8 !important;
}

/* LINKS (Forgot Pass, Cancel, Sign Up) */
.sb-bottom .sb-text {
    display: inline-block; /* Changed from inline to inline-block for better spacing */
    margin: 0;
}

.sb-btn-login-box,
.btn-registration-box,
.btn-forgot-password,
.btn-cancel-reset-password {
    color: #2563eb !important;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.sb-btn-login-box:hover,
.btn-registration-box:hover,
.btn-forgot-password:hover,
.btn-cancel-reset-password:hover {
    color: #1e40af !important;
    text-decoration: underline;
}

/* Spacing between "Need account?" and "Sign up" */
.sb-bottom .sb-btn-login-box,
.sb-bottom .btn-registration-box {
    margin-left: 5px;
}

/* Forgot password link alignment (inside login form) */
.sb-login-box .btn-forgot-password {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

/* Cancel button alignment (inside reset form) */
.btn-cancel-reset-password {
    display: inline-block;
    margin-top: 5px;
}

/* ERRORS & LOADING */
.sb-errors-area {
    color: #dc2626;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.loading-screen {
    display: none; /* Hidden by default, controlled by JS usually */
    text-align: center;
}

/* ===========================
   RIGHT SIDE SLIDER
   =========================== */

.slider-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: 20px;
    height: auto !important;
}

.slider {
    position: relative;
    overflow: hidden;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}

.slide {
    display: none; /* JS handles showing this */
    text-align: left;
    animation: fadeEffect 0.5s;
}

.slide img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.slide-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px 0;
}

.slide-text {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.4;
    padding-bottom: 15px;
}

.learn-more-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background-color: #2563eb;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.learn-more-btn:hover {
    background-color: #1d4ed8;
}

/* MOBILE RESPONSIVE */
@media (max-width: 820px) {
    .auth-container {
        width: 95%;
        flex-direction: column;
        margin: 20px auto;
    }

    .auth-right {
        display: none !important;
    }

    .auth-left {
        width: 100%;
        border-right: none;
        padding: 30px 20px;
    }
}