/* =========================================================
   RANI TRADERS — Login / Register / Identity pages
   Shared by all Identity Razor Pages (Login, Register, etc.)
   ========================================================= */

.rani-auth-page {
    min-height: 100vh;
    background: linear-gradient(rgba(15, 17, 20, .92), rgba(15, 17, 20, .96)), radial-gradient(circle at top right, #f5b400 0%, transparent 35%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.rani-auth-container {
    width: 100%;
    max-width: 1050px;
    min-height: 620px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

/* ---------- LEFT BRANDING ---------- */

.rani-auth-brand {
    background: linear-gradient(rgba(20,22,25,.94), rgba(20,22,25,.97)), linear-gradient(135deg,#f5b400,#111);
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.rani-auth-brand::before {
    content: "";
    position: absolute;
    width: 320px; height: 320px;
    border: 70px solid rgba(245,180,0,.06);
    border-radius: 50%;
    right: -160px; top: -120px;
}
.rani-auth-brand::after {
    content: "";
    position: absolute;
    width: 250px; height: 250px;
    border: 50px solid rgba(245,180,0,.04);
    border-radius: 50%;
    left: -150px; bottom: -130px;
}

.rani-auth-logo {
    width: 75px; height: 75px;
    background: #f5b400;
    color: #17191c;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(245,180,0,.22);
    position: relative; z-index: 2;
}

.rani-auth-small {
    color: #f5b400;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    position: relative; z-index: 2;
}

.rani-auth-brand h1 {
    font-size: 46px;
    font-weight: 300;
    margin: 8px 0 12px;
    letter-spacing: 2px;
    position: relative; z-index: 2;
    color: #fff;
}
.rani-auth-brand h1 strong { font-weight: 800; color: #f5b400; }

.rani-auth-brand > p {
    color: #b8bec5;
    font-size: 15px;
    line-height: 1.7;
    max-width: 410px;
    position: relative; z-index: 2;
}

.rani-auth-features { margin-top: 35px; position: relative; z-index: 2; }
.rani-auth-features div { display: flex; align-items: center; margin-bottom: 16px; color: #d9dde1; font-size: 14px; }
.rani-auth-features i {
    width: 34px; height: 34px;
    background: rgba(245,180,0,.12);
    color: #f5b400;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px;
}

/* ---------- LOGIN CARD ---------- */

.rani-login-card {
    background: #fff;
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rani-login-header { margin-bottom: 30px; }
.rani-login-icon {
    width: 52px; height: 52px;
    background: #fff7d9;
    color: #d99d00;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 23px;
    margin-bottom: 18px;
}
.rani-login-header h2 { color: #17191c; font-size: 28px; font-weight: 750; margin-bottom: 6px; }
.rani-login-header p { color: #858b92; font-size: 14px; margin: 0; }

/* ---------- FORM FIELDS ---------- */

.rani-auth-field { margin-bottom: 21px; }
.rani-auth-field label { font-size: 13px; font-weight: 650; color: #292d32; margin-bottom: 8px; display: block; }

.rani-auth-input {
    height: 49px;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    background: #fafbfc;
    transition: .25s;
    overflow: hidden;
}
.rani-auth-input:focus-within {
    border-color: #f5b400;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(245,180,0,.10);
}
.rani-auth-input > i:first-child { color: #9298a0; margin-left: 15px; margin-right: 11px; }
.rani-auth-input input {
    border: 0; outline: 0;
    background: transparent;
    width: 100%; height: 100%;
    font-size: 13px; color: #25282c;
    padding-right: 12px;
}
.rani-auth-input input::placeholder { color: #a8adb3; }

/* ---------- PASSWORD TOGGLE ---------- */

.rani-password-toggle {
    border: 0; background: transparent;
    color: #8d939a;
    width: 45px; height: 100%;
    cursor: pointer;
    transition: .2s;
}
.rani-password-toggle:hover { color: #d99d00; }

/* ---------- FORGOT PASSWORD ---------- */

.rani-forgot { color: #c28d00; font-size: 12px; font-weight: 600; text-decoration: none; }
.rani-forgot:hover { color: #8e6800; text-decoration: underline; }

/* ---------- REMEMBER ME ---------- */

.rani-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 23px; }
.rani-remember label { font-size: 13px; color: #656b72; cursor: pointer; margin: 0; }
.rani-remember .form-check-input { margin: 0; cursor: pointer; border-color: #cdd1d6; }
.rani-remember .form-check-input:checked { background-color: #f5b400; border-color: #f5b400; }

/* ---------- LOGIN BUTTON ---------- */

.rani-login-btn {
    width: 100%; height: 50px;
    border: 0; border-radius: 10px;
    background: #17191c;
    color: #fff;
    font-size: 14px; font-weight: 650;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px;
    cursor: pointer;
    transition: all .25s;
}
.rani-login-btn span { display: flex; align-items: center; gap: 9px; }
.rani-login-btn > i { color: #f5b400; }
.rani-login-btn:hover {
    background: #f5b400;
    color: #17191c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245,180,0,.20);
}
.rani-login-btn:hover > i { color: #17191c; }

/* ---------- DIVIDER ---------- */

.rani-divider { display: flex; align-items: center; gap: 12px; margin: 25px 0 18px; }
.rani-divider::before, .rani-divider::after { content: ""; height: 1px; background: #e8eaed; flex: 1; }
.rani-divider span { color: #a1a6ac; font-size: 10px; font-weight: 700; }

/* ---------- GOOGLE LOGIN ---------- */

.rani-google-btn {
    width: 100%; height: 47px;
    border: 1px solid #e1e4e8;
    background: #fff;
    border-radius: 10px;
    color: #383c41;
    font-size: 13px; font-weight: 600;
    transition: .25s;
}
.rani-google-btn i { color: #db4437; margin-right: 8px; }
.rani-google-btn:hover { background: #f8f9fa; border-color: #cdd1d6; transform: translateY(-1px); }

/* ---------- REGISTER LINK ---------- */

.rani-register { text-align: center; margin-top: 25px; font-size: 13px; color: #8b9198; }
.rani-register a { color: #c28d00; font-weight: 700; text-decoration: none; margin-left: 5px; }
.rani-register a:hover { text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 850px) {
    .rani-auth-container { grid-template-columns: 1fr; max-width: 550px; }
    .rani-auth-brand { padding: 40px; min-height: 330px; }
    .rani-auth-brand h1 { font-size: 36px; }
    .rani-auth-features { display: flex; flex-wrap: wrap; gap: 15px; }
    .rani-auth-features div { margin-bottom: 0; }
    .rani-login-card { padding: 45px 40px; }
}

@media (max-width: 500px) {
    .rani-auth-page { padding: 15px; }
    .rani-auth-container { border-radius: 18px; }
    .rani-auth-brand { padding: 35px 25px; }
    .rani-auth-brand h1 { font-size: 30px; }
    .rani-auth-features { display: block; }
    .rani-auth-features div { margin-bottom: 12px; }
    .rani-login-card { padding: 35px 25px; }
    .rani-login-header h2 { font-size: 24px; }
}
