/* ===================================================
   UPI Protect - Launch Page Styles (styles/launch.css)
   =================================================== */

/* Brand Typography */
@font-face {
    font-family: 'Saans TRIAL';
    src: local('Saans TRIAL Regular'), local('SaansTRIAL-Regular'),
        url('../assets/font/SaansTRIAL-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saans TRIAL';
    src: local('Saans TRIAL Medium'), local('SaansTRIAL-Medium'),
        url('../assets/font/SaansTRIAL-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saans TRIAL';
    src: local('Saans TRIAL SemiBold'), local('SaansTRIAL-SemiBold'),
        url('../assets/font/SaansTRIAL-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saans TRIAL';
    src: local('Saans TRIAL Bold'), local('SaansTRIAL-Bold'),
        url('../assets/font/SaansTRIAL-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Saans TRIAL';
    src: local('Saans TRIAL Heavy'), local('SaansTRIAL-Heavy'),
        url('../assets/font/SaansTRIAL-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #040209;
    --card-bg: rgba(18, 14, 42, 0.82);
    --card-border: rgba(105, 75, 185, 0.28);
    --card-border-glow: rgba(139, 92, 246, 0.35);
    --input-bg: rgba(26, 20, 56, 0.85);
    --input-border: rgba(85, 65, 145, 0.45);
    --input-border-focus: #6366f1;
    --text-white: #ffffff;
    --text-muted: #8e8aab;
    --text-placeholder: #686488;
    --accent-copper: #e07a38;
    --accent-copper-glow: rgba(224, 122, 56, 0.3);
    --btn-start: #3544d6;
    --btn-mid: #4a22d8;
    --btn-end: #5b1cb8;
    --font-main: 'Saans TRIAL', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background: #020106;
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Atmosphere */
.launch-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* background: linear-gradient(180deg, #000000 32.18%, #1D0158 198.46%); */
    background-image: url('../assets/images/banner1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 33px 20px 36px 20px;
    z-index: 1;
    overflow: hidden;
}

/* Decorative Background Banner Waves Image */
.bg-waves-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-waves-svg,
.bg-waves-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: bottom center;
    /* opacity: 0.95; */
}

/* Header */
.launch-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(41, 62, 103, 0.5);
}

.launch-logo-link {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.launch-logo-link:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.launch-logo {
    width: 215px;
    height: auto;
    display: block;
}

/* Main Content Container */
.launch-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 880px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 0 0 0;
}

/* Headings */
.launch-title {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 auto 30px auto;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.title-wrap {
    display: inline;
}

.launch-subtitle {
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    color: #FF8E55;
    letter-spacing: -0.01em;
    margin-bottom: 38px;
    text-shadow: 0 0 16px var(--accent-copper-glow);
}

/* Central Card */
.launch-card {
    position: relative;
    width: 100%;
    max-width: 720px;
    border-radius: 20px;
    padding: 40px 48px;
    /* box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(65, 30, 150, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.08); */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(57, 1, 174, 0.20);
    border: 1px solid rgba(59, 72, 212, 0.30);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.launch-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 28px 70px -10px rgba(0, 0, 0, 0.9),
        0 0 45px rgba(85, 45, 185, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.card-heading {
    font-size: 17px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    line-height: 1.4;
    white-space: nowrap;
}

.card-heading-main,
.card-heading-sub {
    display: inline;
}

.card-heading .highlight {
    color: var(--accent-copper);
    font-weight: 500;
}

/* Form Styles */
.launch-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
    width: 100%;
}

.input-box {
    position: relative;
    background: rgba(62, 62, 62, 0.3);
    border: 1px solid rgba(62, 62, 62, 0.4);
    border-radius: 12px;
    padding: 9px 16px 10px 16px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: text;
}

.input-box:hover {
    border-color: rgba(120, 95, 190, 0.6);
    background: rgba(30, 24, 64, 0.9);
}

.input-box:focus-within {
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25), 0 0 16px rgba(99, 102, 241, 0.2);
    background: rgba(34, 27, 70, 0.95);
}

.input-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    margin-bottom: 3px;
    pointer-events: none;
    user-select: none;
}

.input-field {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.input-field::placeholder {
    color: var(--text-placeholder);
    opacity: 1;
    font-weight: 400;
}

/* Override Browser Autofill Styles (Chrome, Safari, Edge, Firefox) */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.input-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a1438 inset !important;
    box-shadow: 0 0 0 1000px #1a1438 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    border-radius: 4px;
    transition: background-color 50000s ease-in-out 0s;
}

/* Submit Button */
.btn-submit {
    position: relative;
    width: 100%;
    height: 55px;
    border: none;
    outline: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #3B48D4 0%, #3901AF 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1.5px);
    filter: brightness(1.08);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.98);
}

.btn-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification & Status Messages */
.form-alert {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    text-align: center;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.form-alert.error {
    display: block;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #fca5a5;
}

.form-alert.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

/* Success Card Overlay / View */
.success-view {
    display: none;
    text-align: center;
    padding: 12px 8px;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
}

.success-title {
    font-size: 21px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.success-desc {
    font-size: 14.5px;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 440px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer / Partner Badges */
.launch-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-badges {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    user-select: none;
}

.badge-text {
    letter-spacing: -0.01em;
}

.badge-hdfc {
    height: 22px;
    width: auto;
    display: block;
    vertical-align: middle;
}

.badge-divider {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    font-size: 15px;
    margin: 0 2px;
}

.badge-mitigata {
    height: 19px;
    width: auto;
    display: block;
    vertical-align: middle;
}

/* ===================================================
   Responsive Breakpoints
   =================================================== */
@media (max-width: 860px) {
    .launch-title {
        white-space: normal;
        font-size: 38px;
    }

    .card-heading {
        white-space: normal;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .launch-wrapper {
        background-image: url('../assets/images/banner2.png');
        padding: 32px 18px 24px 18px;
    }

    .launch-header {
        margin-bottom: 16px;
    }

    .launch-logo {
        width: 168px;
    }

    .launch-main {
        padding: 10px 0 16px 0;
    }

    .launch-title {
        font-size: 28px;
        line-height: 1.22;
        letter-spacing: -0.025em;
        margin-bottom: 8px;
        max-width: 320px;
    }

    .title-wrap {
        display: block;
    }

    .launch-subtitle {
        font-size: 15px;
        letter-spacing: -0.01em;
        margin-bottom: 28px;
    }

    .launch-card {
        padding: 24px 18px 24px 18px;
        border-radius: 18px;
        max-width: 380px;
        border-color: rgba(105, 75, 185, 0.35);
        box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.8),
            0 0 25px rgba(65, 30, 150, 0.16);
    }

    .card-heading {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 18px;
        white-space: normal;
    }

    .card-heading-main {
        display: block;
    }

    .card-heading-sub {
        display: block;
        margin-top: 3px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .input-box {
        padding: 9px 14px 10px 14px;
        border-radius: 12px;
    }

    .input-label {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .input-field {
        font-size: 14px;
    }

    .btn-submit {
        height: 48px;
        font-size: 15px;
        border-radius: 12px;
    }

    .launch-footer {
        margin-top: 28px;
    }

    .partner-badges {
        display: inline-flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-size: 11.5px;
    }

    .badge-hdfc {
        height: 19px;
    }

    .badge-divider {
        font-size: 13px;
        margin: 0 1px;
    }

    .badge-mitigata {
        height: 16px;
    }

    .bg-waves-svg {
        height: 52%;
        width: 140%;
        left: -20%;
        bottom: 0;
        opacity: 0.95;
    }
}

@media (max-width: 380px) {
    .launch-wrapper {
        padding: 24px 12px 20px 12px;
    }

    .launch-title {
        font-size: 33px;
    }

    .launch-subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .launch-card {
        padding: 20px 14px 22px 14px;
        border-radius: 16px;
    }

    .card-heading {
        font-size: 13px;
    }

    .partner-badges {
        gap: 5px;
        font-size: 10.5px;
    }

    .badge-hdfc {
        height: 17px;
    }

    .badge-mitigata {
        height: 14px;
    }
}