/* ==========================================================================
   Vivan Flora — authentication screens (login, OTP, password reset, register)
   Palette is sampled from public/logo.png: purple #800080 → magenta #d0005a
   ========================================================================== */

:root {
    --vf-purple-900: #4a0a55;
    --vf-purple: #800080;
    --vf-magenta: #d0005a;
    --vf-grad: linear-gradient(135deg, #4a0a55 0%, #800080 48%, #d0005a 100%);

    --vf-ink: #241428;
    --vf-body: #5c4f60;
    --vf-muted: #8b7d90;
    --vf-line: #e4dbe7;
    --vf-surface: #ffffff;
    --vf-canvas: #f7f3f8;

    --vf-radius: 14px;
    --vf-shadow: 0 18px 48px rgba(74, 10, 85, 0.12);
}

/* --------------------------------------------------------------- shell --- */

body.auth-body {
    margin: 0;
    min-height: 100vh;
    background: var(--vf-canvas);
    color: var(--vf-ink);
    font-family: "Poppins", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* ---------------------------------------------------------- brand side --- */

.auth-brand {
    position: relative;
    overflow: hidden;
    background: var(--vf-grad);
    color: #fff;
    display: flex;
    align-items: center;
}

/* soft floral glow blobs */
.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand::before {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -160px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 62%);
}

.auth-brand::after {
    width: 620px;
    height: 620px;
    bottom: -260px;
    left: -200px;
    background: radial-gradient(circle at 60% 40%, rgba(255, 92, 168, 0.35), rgba(255, 92, 168, 0) 62%);
}

.auth-brand__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 56px 48px;
    min-height: 100vh;
}

.auth-brand__logo {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 12px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.auth-brand__logo img {
    display: block;
    height: 38px;
    width: auto;
}

.auth-brand__copy h1 {
    font-size: 34px;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 14px;
    letter-spacing: -0.4px;
}

.auth-brand__copy > p {
    margin: 0 0 30px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 42ch;
}

.auth-brand__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.auth-brand__points li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.94);
}

.auth-brand__points i {
    flex: 0 0 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.auth-brand__foot {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.62);
}

/* ----------------------------------------------------------- form side --- */

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--vf-surface);
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

/* logo only shows when the brand panel is hidden (mobile) */
.auth-card__logo {
    display: none;
    margin-bottom: 28px;
}

.auth-card__logo img {
    height: 44px;
    width: auto;
}

/* headings supplied by the individual auth views */
.auth-card .page-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--vf-ink);
    letter-spacing: -0.3px;
    margin: 0 0 6px;
}

.auth-card .login-box-msg {
    padding: 0;
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--vf-muted);
    text-align: left;
}

.auth-card form {
    margin-top: 22px;
}

/* the auth views wrap everything in bootstrap rows — drop the gutters so the
   negative row margins can't push the card past the panel on small screens */
.auth-card .row {
    margin-left: 0;
    margin-right: 0;
}

.auth-card .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* ------------------------------------------------------------- fields --- */

.input_box {
    position: relative;
    width: 100%;
    height: 52px;
    margin-top: 18px;
}

.input_box input {
    width: 100%;
    height: 100%;
    padding: 0 44px;
    font-size: 14.5px;
    color: var(--vf-ink);
    background: #fff;
    border: 1.5px solid var(--vf-line);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.input_box input::placeholder {
    color: #a99fad;
}

.input_box input:hover {
    border-color: #cdbdd2;
}

.input_box input:focus {
    border-color: var(--vf-purple);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(128, 0, 128, 0.11);
}

.input_box input:-webkit-autofill {
    -webkit-text-fill-color: var(--vf-ink);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

/* leading + trailing icons */
.input_box i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    color: var(--vf-muted);
    transition: color 0.18s ease;
}

.input_box i.email,
.input_box i.password,
.input_box i.phone {
    left: 14px;
}

.input_box input:focus ~ i.email,
.input_box input:focus ~ i.password,
.input_box input:focus ~ i.phone {
    color: var(--vf-purple);
}

.input_box i.pw_hide {
    right: 14px;
    font-size: 18px;
    cursor: pointer;
}

.input_box i.pw_hide:hover {
    color: var(--vf-purple);
}

.email-valid-icon,
.phone-valid-icon {
    right: 14px;
    color: #1e9e6a;
    font-size: 19px;
}

/* views that still use the bootstrap input-group markup */
.auth-card .input-group {
    display: block;
}

.auth-card .form-control {
    height: 52px;
    border: 1.5px solid var(--vf-line);
    border-radius: 12px;
    font-size: 14.5px;
    padding: 0 16px;
    box-shadow: none;
}

.auth-card .form-control:focus {
    border-color: var(--vf-purple);
    box-shadow: 0 0 0 4px rgba(128, 0, 128, 0.11);
}

/* validation */
.auth-card .invalid-feedback {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    color: #d63450;
}

.input_box.is-invalid input {
    border-color: #e2879a;
}

.input_box.is-invalid input:focus {
    box-shadow: 0 0 0 4px rgba(214, 52, 80, 0.12);
}

/* ------------------------------------------------ remember / forgot row --- */

.auth-card .icheck-primary > label {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--vf-body);
    padding-left: 26px;
    margin-bottom: 0;
}

.auth-card .icheck-primary > input:first-child:checked + label::before {
    background-color: var(--vf-purple);
    border-color: var(--vf-purple);
}

.auth-card .icheck-primary > input:first-child + label:hover::before,
.auth-card .icheck-primary > input:first-child:focus + label::before {
    border-color: var(--vf-purple);
}

.auth-card a {
    color: var(--vf-purple);
    font-weight: 500;
    transition: color 0.15s ease;
}

.auth-card a:hover {
    color: var(--vf-magenta);
    text-decoration: none;
}

a.forgot-link {
    font-size: 13.5px;
}

/* ------------------------------------------------------------- button --- */

.auth-card .btn-block {
    height: 52px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    /* background-image wins over the inline background-color the views set */
    background-image: var(--vf-grad);
    background-size: 160% 100%;
    background-position: 0% 0%;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(128, 0, 128, 0.26);
    transition: background-position 0.35s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.auth-card .btn-block:hover,
.auth-card .btn-block:focus {
    background-position: 100% 0%;
    box-shadow: 0 14px 30px rgba(208, 0, 90, 0.3);
}

.auth-card .btn-block:active {
    transform: translateY(1px);
}

/* alternate action ("Login with phone", "Back to login", …) */
.auth-card .text-center a {
    font-size: 13.5px;
}

/* ------------------------------------------------------------- alerts --- */

.auth-card .alert {
    border: 0;
    border-radius: 12px;
    padding: 13px 40px 13px 15px;
    font-size: 13.5px;
    position: relative;
}

.auth-card .alert .close {
    position: absolute;
    top: 9px;
    right: 12px;
}

.auth-card .alert-success {
    background: #e8f7f0;
    color: #17714f;
}

.auth-card .alert-danger {
    background: #fdecef;
    color: #b32643;
}

.auth-card .alert-primary {
    background: #f6ecf8;
    color: var(--vf-purple-900);
}

.auth-card .alert .info-box-icon {
    display: none;
}

.auth-card .alert .list-group-item {
    background: transparent;
    border: 0;
    padding: 2px 0;
    font-size: 13px;
}

.auth-card .alert-heading .material-icons {
    font-size: 18px;
    vertical-align: -4px;
}

/* --------------------------------------------------------- responsive --- */

@media (max-width: 1199.98px) {
    .auth-brand__inner {
        padding: 48px 36px;
    }

    .auth-brand__copy h1 {
        font-size: 29px;
    }
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    /* brand panel collapses into a slim gradient banner */
    .auth-brand {
        min-height: 0;
    }

    .auth-brand__inner {
        min-height: 0;
        max-width: 640px;
        padding: 30px 26px 34px;
        gap: 22px;
    }

    .auth-brand__copy h1 {
        font-size: 23px;
        margin-bottom: 8px;
    }

    .auth-brand__copy > p {
        margin-bottom: 0;
        font-size: 14px;
    }

    .auth-brand__points,
    .auth-brand__foot {
        display: none;
    }

    .auth-panel {
        padding: 36px 22px 56px;
    }
}

@media (max-width: 575.98px) {
    .auth-brand {
        display: none;
    }

    .auth-card__logo {
        display: block;
    }

    .auth-panel {
        padding: 34px 20px 48px;
        min-height: 100vh;
        align-items: flex-start;
    }

    .auth-card .page-title {
        font-size: 23px;
    }
}
