/* =====================================================================
   Dail Bharat - Register page stylesheet (register.css)
   Email AND mobile both visible. No tabs. Red error messages.
   ===================================================================== */

:root {
    --saffron: #FF9933;
    --saffron-deep: #E67A00;
    --gold: #F5B83D;
    --navy: #0B1F45;
    --navy-deep: #071530;
    --green: #138808;
    --green-deep: #0C5C05;
    --ink: #1B1B1B;
    --slate: #5B6475;
    --line: #E6E2DA;
    --soft: #F6F4EF;
    --paper: #FBFAF7;
    --head: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --shadow: 0 30px 70px -30px rgba(11, 31, 69, .45);
    --danger: #D6293B;
    --danger-deep: #A81D2C;
    --danger-soft: #FDE8EA;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(800px 500px at 100% 0%, rgba(255,153,51,.10), transparent 60%), radial-gradient(700px 480px at 0% 100%, rgba(19,136,8,.08), transparent 60%), var(--paper);
    color: var(--ink);
    font: 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--head);
    line-height: 1.15;
    margin: 0;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    z-index: 200;
}

    .skip:focus {
        left: 8px;
    }

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 600 15.5px/1 var(--body);
    padding: 14px 24px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(230,122,0,.7);
}

    .btn-primary:hover {
        box-shadow: 0 16px 28px -12px rgba(230,122,0,.85);
    }

.btn-outline {
    border-color: var(--navy);
    color: var(--navy);
    background: #fff;
}

    .btn-outline:hover {
        background: var(--navy);
        color: #fff;
    }

/* header */
.auth-header {
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--head);
    font-weight: 800;
    font-size: 25px;
    color: var(--navy);
    letter-spacing: .2px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--saffron), var(--saffron-deep));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 16px -8px rgba(230,122,0,.8);
    transform: rotate(-6deg);
}

.logo em {
    font-style: normal;
    color: var(--saffron-deep);
}

.back-link {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--slate);
    padding: 8px 14px;
    border-radius: 10px;
    transition: background .15s, color .15s;
}

    .back-link:hover {
        background: var(--soft);
        color: var(--navy);
    }

.tricolor {
    height: 4px;
    background: linear-gradient(90deg, var(--saffron) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%);
}

/* section / card */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 0 56px;
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 1040px;
}

/* left panel */
.auth-visual {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: radial-gradient(500px 320px at 90% 0%, rgba(255,153,51,.35), transparent 62%), radial-gradient(420px 300px at 0% 100%, rgba(19,136,8,.28), transparent 62%), linear-gradient(160deg, #0B1F45 0%, #0A2B5E 58%, #071530 100%);
}

    .auth-visual::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(255,255,255,.09) 1.2px, transparent 1.4px);
        background-size: 24px 24px;
        -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
        mask-image: linear-gradient(180deg, #000, transparent 88%);
        pointer-events: none;
    }

.visual-glow {
    position: absolute;
    right: -120px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 2px dashed rgba(245,184,61,.30);
    pointer-events: none;
}

.visual-copy {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    padding: 6px 14px;
    border-radius: 99px;
}

.visual-copy h2 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    margin: 12px 0 8px;
    line-height: 1.15;
}

.visual-copy p {
    color: #CBD3EA;
    font-size: 15px;
    max-width: 360px;
}

.hv {
    position: relative;
    height: 220px;
    z-index: 2;
    flex: none;
}

    .hv .ph {
        position: absolute;
        border-radius: 18px;
        overflow: hidden;
        border: 4px solid rgba(255,255,255,.95);
        box-shadow: 0 24px 44px -22px rgba(0,0,0,.8);
        background: #16336b;
    }

        .hv .ph img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .hv .p1 {
        right: 0;
        top: 0;
        width: 66%;
        height: 100%;
        border-radius: 18px 18px 18px 60px;
    }

    .hv .p2 {
        left: 0;
        top: 22%;
        width: 40%;
        height: 74%;
        border-radius: 60px 18px 18px 18px;
    }

    .hv .ring {
        position: absolute;
        left: 26%;
        top: -10%;
        width: 74px;
        height: 74px;
        border-radius: 50%;
        border: 10px solid rgba(255,153,51,.9);
        border-right-color: transparent;
        transform: rotate(25deg);
        z-index: 3;
    }

.float {
    position: absolute;
    z-index: 3;
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 18px 34px -16px rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    line-height: 1.25;
    animation: bob 6s ease-in-out infinite;
}

    .float b {
        display: block;
        font-family: var(--head);
        font-size: 14px;
        color: var(--navy);
    }

    .float small {
        color: var(--slate);
        font-size: 11px;
    }

    .float .ic {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        display: grid;
        place-items: center;
        font-size: 15px;
        flex: none;
    }

.f1 {
    left: -4%;
    bottom: 6%;
}

    .f1 .ic {
        background: #E8F6EC;
    }

.f2 {
    right: -3%;
    bottom: 26%;
    animation-delay: -2.5s;
}

    .f2 .ic {
        background: #FFF1DE;
    }

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.visual-notes {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 8px;
}

    .visual-notes li {
        position: relative;
        padding-left: 26px;
        font-size: 14px;
        color: #D8DEF0;
        font-weight: 500;
    }

        .visual-notes li::before {
            content: "✔";
            position: absolute;
            left: 0;
            top: 1px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: rgba(255,153,51,.22);
            color: var(--gold);
            font-size: 11px;
            font-weight: 800;
            display: grid;
            place-items: center;
        }

/* right form */
.auth-form {
    padding: 40px 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-head {
    margin-bottom: 20px;
}

    .form-head h1 {
        font-size: clamp(26px, 3vw, 32px);
        font-weight: 800;
        color: var(--navy);
        margin-bottom: 6px;
    }

    .form-head p {
        color: var(--slate);
        font-size: 15px;
    }

    .form-head a {
        color: var(--saffron-deep);
        font-weight: 700;
        border-bottom: 2px solid rgba(230,122,0,.3);
        padding-bottom: 1px;
    }

        .form-head a:hover {
            color: var(--navy);
            border-color: var(--navy);
        }

/* Field styling */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

    .field label {
        font-size: 13px;
        font-weight: 700;
        color: var(--navy);
        letter-spacing: .02em;
    }

    .field input {
        font: 500 15.5px/1.5 var(--body);
        color: var(--ink);
        background: var(--paper);
        border: 1.5px solid var(--line);
        border-radius: 12px;
        padding: 13px 15px;
        width: 100%;
        transition: border-color .15s, background .15s, box-shadow .15s;
    }

        .field input::placeholder {
            color: #9AA0AF;
        }

        .field input:focus {
            outline: none;
            border-color: var(--saffron);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(255,153,51,.18);
        }

/* Phone input: +91 and field on one line */
.phone-input {
    display: flex;
    align-items: stretch;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s, background .15s, box-shadow .15s;
    width: 100%;
}

    .phone-input:focus-within {
        border-color: var(--saffron);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(255,153,51,.18);
    }

.phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    border-right: 1.5px solid var(--line);
    background: rgba(246,244,239,.6);
    flex: none;
    white-space: nowrap;
    line-height: 1;
}

.phone-input input {
    border: 0 !important;
    background: transparent !important;
    padding: 13px 15px;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}

    .phone-input input:focus {
        outline: none;
        box-shadow: none !important;
        background: transparent !important;
    }

/* Consent */
.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--slate);
    margin: 4px 0 6px;
    cursor: pointer;
}

    .consent input {
        width: 17px;
        height: 17px;
        accent-color: var(--saffron-deep);
        flex: none;
        margin-top: 2px;
        cursor: pointer;
    }

    .consent a {
        color: var(--navy);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .consent a:hover {
            color: var(--saffron-deep);
        }

/* Invalid state */
.input-invalid {
    border-color: var(--danger) !important;
    background: #FFF5F6 !important;
    box-shadow: 0 0 0 3px rgba(214, 41, 59, .15) !important;
}

.phone-input.input-invalid {
    border-color: var(--danger) !important;
    background: #FFF5F6 !important;
    box-shadow: 0 0 0 3px rgba(214, 41, 59, .15) !important;
}

    .phone-input.input-invalid .phone-prefix {
        border-right-color: var(--danger);
        background: rgba(253, 232, 234, .8);
        color: var(--danger);
    }

    .phone-input.input-invalid input {
        background: #FFF5F6 !important;
    }

/* Error message (RED) */
.error-msg {
    display: none;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--danger-deep);
    background: var(--danger-soft);
    border: 1px solid rgba(214, 41, 59, .25);
    border-left: 4px solid var(--danger);
    border-radius: 8px;
    padding: 8px 11px;
    margin-top: 2px;
}

    .error-msg.visible {
        display: flex;
        animation: slideIn .22s ease-out;
    }

    .error-msg::before {
        content: "!";
        display: inline-grid;
        place-items: center;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--danger);
        color: #fff;
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
        flex: none;
        margin-top: 1px;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 6px;
}

/* Terms note */
.terms-note {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--slate);
    text-align: center;
}

/* Login CTA */
.login-cta {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

    .login-cta span {
        font-size: 14px;
        color: var(--slate);
    }

.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
}

/* Footer */
.auth-footer {
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.7);
}

    .auth-footer .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        font-size: 13.5px;
        color: var(--slate);
    }

    .auth-footer nav {
        display: flex;
        gap: 18px;
        flex-wrap: wrap;
    }

    .auth-footer a {
        font-weight: 600;
    }

        .auth-footer a:hover {
            color: var(--saffron-deep);
        }

/* Responsive */
@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .auth-visual {
        padding: 28px 28px 26px;
        gap: 18px;
    }

    .visual-copy h2 {
        font-size: 24px;
    }

    .visual-copy p {
        max-width: none;
    }

    .hv {
        height: 170px;
    }

    .visual-notes {
        grid-template-columns: 1fr 1fr;
    }

    .auth-form {
        padding: 32px 28px 30px;
    }
}

@media (max-width: 560px) {
    .auth-section {
        padding: 26px 0 40px;
    }

    .wrap {
        padding: 0 16px;
    }

    .auth-form {
        padding: 26px 20px 24px;
    }

    .auth-visual {
        padding: 24px 20px 22px;
    }

    .hv {
        height: 150px;
    }

    .f1 {
        left: 0;
    }

    .f2 {
        right: 0;
    }

    .visual-notes {
        grid-template-columns: 1fr;
    }

    .form-head h1 {
        font-size: 24px;
    }

    .back-link {
        font-size: 13.5px;
        padding: 6px 10px;
    }

    .logo {
        font-size: 22px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

    .brand-logo img {
        display: block;
        width: 190px;
        height: auto;
        max-height: 65px;
        object-fit: contain;
    }
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
/* =====================================================================
   SUCCESS CONFIRMATION POPUP (after registration)
   ===================================================================== */

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 21, 48, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s ease;
}

    .success-overlay.visible {
        opacity: 1;
    }

.success-modal {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px 32px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px -30px rgba(11, 31, 69, .6), 0 0 0 1px rgba(255, 153, 51, .15), 0 0 0 6px rgba(255, 153, 51, .05);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
    overflow: hidden;
}

.success-overlay.visible .success-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Tricolor top bar */
.success-modal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #FF9933, #F5B83D 50%, #138808);
}

.success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #138808, #0C5C05);
    display: grid;
    place-items: center;
    box-shadow: 0 18px 36px -16px rgba(19, 136, 8, .7), 0 0 0 8px rgba(19, 136, 8, .12);
    animation: successPop .55s cubic-bezier(.34, 1.56, .64, 1) both;
    animation-delay: .1s;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.12);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal h2 {
    font-family: 'Baloo 2', system-ui, sans-serif;
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 800;
    color: #0B1F45;
    margin: 0 0 10px;
}

.success-lead {
    font-size: 15.5px;
    color: #5B6475;
    line-height: 1.55;
    margin: 0 0 6px;
}

    .success-lead strong {
        color: #0B1F45;
        font-weight: 700;
    }

.success-sub {
    font-size: 14px;
    color: #5B6475;
    line-height: 1.55;
    margin: 0 0 24px;
}

    .success-sub strong {
        color: #E67A00;
        font-weight: 700;
        word-break: break-all;
    }

.success-actions {
    margin-bottom: 14px;
}

.success-cta {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF9933, #E67A00);
    color: #fff;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 14px 28px -12px rgba(230, 122, 0, .75);
    transition: transform .18s, box-shadow .18s;
}

    .success-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 32px -12px rgba(230, 122, 0, .85);
        color: #fff;
    }

    .success-cta:active {
        transform: translateY(0);
    }

.success-footnote {
    font-size: 12.5px;
    color: #9AA0AF;
    margin: 0;
}

    .success-footnote span {
        font-weight: 800;
        color: #E67A00;
    }

@media (max-width: 520px) {
    .success-modal {
        padding: 32px 22px 26px;
        border-radius: 20px;
    }

    .success-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }

    .success-modal h2 {
        font-size: 22px;
    }

    .success-lead {
        font-size: 14.5px;
    }

    .success-sub {
        font-size: 13px;
    }

    .success-cta {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .success-overlay,
    .success-modal,
    .success-icon,
    .success-cta {
        animation: none !important;
        transition: opacity .15s !important;
    }

        .success-overlay.visible .success-modal {
            transform: none;
        }
}