:root {
    --primary: #6c47eb;
    --primary-gradient-start: #783be8;
    --primary-gradient-end: #5b28d9;

    --background-page: #ffffff;
    --background-card: #ffffff;

    --input-bg: #f9f9fc;
    --input-border: #e2e2ec;
    --input-focus: #6c47eb;

    --text-dark: #1e1e24;
    --text-muted: #e2d9f8;
    --placeholder-color: #a0a0ab;

    --error-color: #d93025;

    --border-radius-btn: 30px;
    --border-radius-input: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: var(--background-page);
    color: var(--text-dark);
}

/* =========================================
   FULL PAGE CONTAINER
   ========================================= */

.mobile-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    background: var(--background-card);

    display: flex;
    flex-direction: column;

    position: relative;

    overflow: hidden;

    box-shadow: none;
    border-radius: 0;
}

/* =========================================
   HEADER
   ========================================= */

.header-banner {
    width: 100%;
    height: 250px;

    background:
        linear-gradient(
            135deg,
            var(--primary-gradient-start),
            var(--primary-gradient-end)
        );

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    padding-bottom: 20px;

    /*
       Curved bottom edge
    */
    border-bottom-left-radius: 50% 25px;
    border-bottom-right-radius: 50% 25px;

    flex-shrink: 0;
}

.logo-container {
    text-align: center;
    color: #ffffff;
}

.logo-placeholder {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 38px;
    font-weight: 800;

    font-style: italic;

    letter-spacing: -1px;

    margin-bottom: 6px;
}

.subtitle {
    font-size: 15px;

    color: var(--text-muted);

    font-weight: 400;

    letter-spacing: 0.2px;
}

/* =========================================
   FORM AREA
   ========================================= */

.form-container {
    width: 100%;

    padding: 32px 28px;

    display: flex;
    flex-direction: column;

    flex-grow: 1;
}

.form-title {
    font-size: 20px;

    font-weight: 600;

    color: var(--text-dark);

    margin-bottom: 20px;
}

/* =========================================
   INPUTS & CONSENT
   ========================================= */

.input-group {
    width: 100%;

    margin-bottom: 16px;
}

.input-group input {
    width: 100%;

    height: 52px;

    background: var(--input-bg);

    border: 1px solid var(--input-border);

    border-radius: var(--border-radius-input);

    padding: 0 16px;

    font-size: 15px;

    color: var(--text-dark);

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.input-group input::placeholder {
    color: var(--placeholder-color);
}

.input-group input:focus {
    border-color: var(--input-focus);

    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(108, 71, 235, 0.08);
}

.consent-group {
    width: 100%;
    margin-bottom: 16px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.4;
}

.consent-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* =========================================
   LINKS
   ========================================= */

.links-row {
    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-top: 4px;

    margin-bottom: 40px;
}

.purple-link {
    color: var(--primary);

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;
}

.purple-link:hover {
    text-decoration: underline;
}

/* =========================================
   BUTTONS
   ========================================= */

.button-group {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 16px;

    margin-top: auto;

    padding-bottom: 20px;
}

.btn {
    width: 100%;

    height: 50px;

    border-radius: var(--border-radius-btn);

    font-size: 16px;

    font-weight: 500;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform 0.15s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary */

.btn-primary {
    background: var(--primary);

    color: #ffffff;

    border: none;
}

.btn-primary:hover {
    background: var(--primary-gradient-end);

    box-shadow:
        0 8px 20px rgba(108, 71, 235, 0.20);
}

/* Outline */

.btn-outline {
    background: #ffffff;

    color: var(--primary);

    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: #f7f3ff;
}

/* =========================================
   ERROR MESSAGE
   ========================================= */

.error-message {
    color: var(--error-color);

    font-size: 13px;

    line-height: 1.4;

    margin-bottom: 12px;

    display: none;
}

.error-message.visible {
    display: block;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 480px) {

    .header-banner {
        height: 230px;
    }

    .form-container {
        padding: 28px 22px;
    }

    .links-row {
        margin-bottom: 32px;
    }

}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 360px) {

    .header-banner {
        height: 215px;
    }

    .form-container {
        padding: 25px 18px;
    }

    .form-title {
        font-size: 19px;
    }

    .input-group input {
        height: 50px;
        font-size: 14px;
    }

    .purple-link {
        font-size: 13px;
    }

    .btn {
        height: 48px;
        font-size: 15px;
    }

}

/* =========================================
   LARGE DESKTOP
   ========================================= */

@media (min-width: 900px) {

    .header-banner {
        height: 280px;
    }

    .form-container {
        padding: 42px 10%;
    }

}