:root {
    --bg-deep: #9d2224;
    /* main dark red */
    --accent: #c62629;
    /* button / logo red */
    --muted: #9a9a9a;
    --card-bg: #ffffff;
    --input-border: #ebebeb;
    --input-bg: #fafafa;
    --text-dark: #222222;
    --soft-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    --card-radius: 34px;
    --max-width: 760px;
    --pad: 64px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* full-bleed red background with soft radial "vignette" blurs */
html,
body {
    /* height: 100%; */
    margin: 0;
    background: linear-gradient(180deg, var(--bg-deep) 0%, #952323 35%, #8b1f21 100%);
    color: var(--text-dark);
}

.bg-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(40% 40% at 8% 15%, rgba(255, 255, 255, 0.12), transparent 10%),
        radial-gradient(38% 38% at 88% 88%, rgba(255, 255, 255, 0.10), transparent 12%),
        radial-gradient(30% 30% at 20% 85%, rgba(255, 255, 255, 0.06), transparent 12%);
    filter: blur(18px) saturate(.9);
}

/* center container */
.wrap {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* card */
.card {
    width: 100%;
    max-width: var(--max-width);
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: clamp(28px, 6vw, var(--pad));
    box-shadow: var(--soft-shadow);
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

/* logo */
.logo {
    margin: 0 auto 6px;
    display: inline-block;
}

/* headings */
.title {
    font-family: "Poppins", "Inter", sans-serif;
    font-weight: 700;
    font-size: 36px;
    margin: 18px 0 6px;
    color: #222;
}

.subtitle {
    margin: 0 0 28px;
    color: #808080;
    font-size: 18px;
    font-weight: 500;
}

/* form layout */
.form {
    text-align: left;
    max-width: 680px;
    margin: 0 auto;
}

.field-label {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* phone input group */
.phone-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border-radius: 36px;
    border: 1px solid var(--input-border);
    /* padding: 6px; */
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.01);
}

/* country button */
.country-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: #f6f7f8;
    padding: 10px 12px;
    border-radius: 32px -1px !important;
    min-width: 120px;
    min-height: 60px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    align-self: stretch;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.country-btn:focus {
    outline: 3px solid rgba(198, 38, 41, 0.12);
    outline-offset: 2px;
}

/* contents inside country */
.country-btn .flag {
    display: block;
    border-radius: 2px;
}

.country-btn .code {
    font-weight: 600;
    color: #444;
}

.country-btn .chev {
    margin-left: auto;
    opacity: 0.85;
    display: none;
}

/* phone text input */
.input {
    flex: 1;
    border: 0;
    padding: 14px 18px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: var(--text-dark);
    font-weight: 500;
}

.input::placeholder {
    color: #9c9c9c;
    font-weight: 400;
}

.input:focus {
    outline: none;
}

/* small hint text */
.hint {
    color: #6e6e6e;
    margin: 18px 0 24px;
    font-size: 14px;
}

/* big pill button */
.btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent);
    color: #fff;
    padding: 18px 22px;
    border-radius: 999px;
    border: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(198, 38, 41, 0.2);
    transition: transform .12s ease, box-shadow .12s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(198, 38, 41, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-arrow {
    opacity: 0.95;
}

/* signup row and footer */
.signup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 50px 0 18px;
    gap: 12px;
}

.no-account {
    color: #4e4e4e;
    font-size: 15px;
}

.signup {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.footer {
    margin-top: 50px;
    text-align: center;
    color: #9b9b9b;
    font-size: 13px;
    /* padding-bottom: 6px; */
}

/* invalid state */
.input.invalid {
    box-shadow: 0 0 0 3px rgba(198, 38, 41, 0.08);
    border-radius: 12px;
}

@media (max-width:420px) {
    .otp-modal {
        width: 280px;
    }
}

/* responsiveness */
@media (max-width:720px) {
    :root {
        --pad: 36px;
    }

    .card {
        /* padding: 28px 20px; */
        border-radius: 28px;
    }

    .title {
        font-size: 30px;
    }

    .logo svg {
        width: 200px;
        height: auto;
    }

    .phone-input {
        flex-direction: row;
        gap: 10px;
    }

    .country-btn {
        min-width: 100px;
        padding: 8px 10px;
    }

     .input {
        padding: 14px 2px;
        font-size: 12px;
    }

    .no-account{
        font-size: 13px;
    }
}

@media (max-width:420px) {
    .card {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .title {
        font-size: 26px;
    }

    .subtitle {
        font-size: 16px;
    }

    .btn-primary {
        padding: 14px 16px;
        font-size: 16px;
    }

    .phone-input {
        gap: 8px;
    }

    .country-btn .code {
        font-size: 13px;
    }

    /* .signup-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    } */

    .signup {
        align-self: flex-end;
        font-size: 13px;
    }

    .input {
        padding: 14px 2px;
        font-size: 12px;
    }

    .no-account{
        font-size: 13px;
    }

    .footer{
        font-size: 12px;
    }

    .logo{
        margin: 0px;
    }

    .logo img {
        width: 160px;
    }
}
