﻿:root {
    --brand-bg: #0b0f19;
    --brand-bg-alt: #151c2c;
    --brand-bg-light: #222738;
    --brand-primary: #33e27c;
    --brand-accent: #31c5f8;
    --brand-error: #f76e6e;
    --brand-success: #33e27c;
    --brand-border: #2d3447;
    --brand-shadow: 0 8px 32px 0 rgba(49,197,248,0.07), 0 1.5px 6px rgba(30,41,59,0.08);
    --brand-radius: 14px;
    --brand-radius-lg: 22px;
    --brand-radius-sm: 10px;
    --brand-glass-bg: rgba(25,30,46,0.94);
    --brand-glass-border: 1.5px solid rgba(49,197,248,0.11);
    --brand-focus: 0 0 0 3px rgba(49,197,248,0.15);
    --brand-white: #fff;
    --brand-text: #eaf1fa;
    --brand-text-muted: #8ca3c7;
    --transition: all 0.22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    background: var(--brand-bg);
    color: var(--brand-text);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
}

body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Container width unified (wider for comfort) */
.signup-container {
    width: 100%;
    max-width: 560px;
    margin: 36px auto 24px;
    padding: 2.1rem 1.25rem 2.3rem;
    background: var(--brand-glass-bg);
    border-radius: var(--brand-radius-lg);
    box-shadow: var(--brand-shadow);
    border: var(--brand-glass-border);
    position: relative;
    overflow: hidden;
    animation: fadeInDash 0.7s;
    z-index: 2;
}

@keyframes fadeInDash {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Progress */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.1rem;
    position: relative;
    z-index: 2;
}

    .progress-bar:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 4px;
        background: #24314d;
        transform: translateY(-50%);
        z-index: 1;
        border-radius: 6px;
    }

.progress-step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #232b3b;
    color: var(--brand-text-muted);
    font-weight: 700;
    font-size: 1.06rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 2.5px 10px #31c5f811;
    border: 2px solid #232b3b;
}

    .progress-step.active {
        background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
        color: #fff;
        border-color: var(--brand-primary);
        box-shadow: 0 4px 22px #31c5f82a;
    }

    .progress-step.completed {
        background: var(--brand-success);
        color: #fff;
        border-color: var(--brand-success);
    }

/* Steps */
.step {
    display: none;
    animation: fadeInDash 0.5s;
}

    .step.active {
        display: block;
    }

.step--verification .verification-code-container {
    padding: .2rem 0 .4rem;
}

/* Headers */
.form-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

    .form-header h2 {
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        font-size: 1.55rem;
        font-weight: 800;
        margin-bottom: 0.2rem;
        letter-spacing: -0.5px;
        text-shadow: 0 4px 18px #33e27c18;
    }

    .form-header p {
        color: var(--brand-text-muted);
        font-size: 1.03rem;
        font-weight: 500;
        margin: 0;
        letter-spacing: .01em;
    }

/* Inputs */
.form-group {
    margin-bottom: 1.05rem;
}

.form-label {
    display: block;
    margin-bottom: 0.28rem;
    font-weight: 600;
    font-size: 1.01rem;
    color: var(--brand-accent);
}

.form-control,
select.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.6px solid var(--brand-border);
    border-radius: var(--brand-radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-text);
    background-color: var(--brand-bg-light);
    transition: var(--transition);
    box-shadow: var(--brand-shadow);
    outline: none;
    line-height: 1.22;
    appearance: none;
    -webkit-appearance: none;
}

    .form-control:focus, select.form-control:focus {
        border-color: var(--brand-accent);
        background-color: var(--brand-bg);
        box-shadow: var(--brand-focus);
    }

/* Error messages with animation */
@keyframes popIn {
    0% {
        transform: translateY(-6px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-message {
    color: var(--brand-white);
    background: #2e1a23;
    border: 1px solid #f76e6e55;
    border-left-width: 3px;
    border-left-color: var(--brand-error);
    font-size: 0.93rem;
    font-weight: 600;
    margin-top: 0.32rem;
    display: none;
    padding: 0.42rem 0.6rem;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(247,110,110,0.08);
}

    .error-message.show {
        display: block;
        animation: popIn .18s ease-out;
    }

/* Buttons */
.btn, input[type="submit"].btn, input[type="button"].btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.98em 0.6em;
    border: none;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 800;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2.5px 10px #31c5f80b;
    margin-bottom: 0.14rem;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary));
    color: #fff;
    letter-spacing: 0.01em;
    min-height: 50px;
}

    .btn:hover, .btn:focus {
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
        box-shadow: 0 6px 24px #33e27c26;
        transform: translateY(-1px) scale(1.01);
    }

    .btn:disabled {
        background: #28314b !important;
        color: #888 !important;
        cursor: not-allowed !important;
        opacity: .6 !important;
        box-shadow: none !important;
    }

.btn-secondary {
    background: #232b3b;
    color: var(--brand-accent);
    border: 1.3px solid var(--brand-accent);
    box-shadow: none;
}

    .btn-secondary:hover, .btn-secondary:focus {
        background: var(--brand-accent);
        color: #fff;
        border-color: var(--brand-primary);
    }

.btn-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.05rem;
    flex-wrap: wrap;
}

@media (max-width: 650px) {
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        min-height: 46px;
    }
}

/* Password strength */
.password-strength {
    margin-top: 0.35rem;
    height: 7px;
    background: #1a2231;
    border-radius: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    background: var(--brand-error);
    transition: var(--transition);
    border-radius: 5px;
}

.password-requirements {
    margin-top: 0.46rem;
    font-size: 0.94rem;
    color: var(--brand-text-muted);
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 0.12rem;
    transition: all .14s;
}

    .requirement i {
        margin-right: 0.45rem;
        font-size: 1em;
        color: #acc8e5;
        transition: color .2s;
    }

    .requirement.valid i {
        color: var(--brand-success);
    }

    .requirement.invalid i {
        color: var(--brand-error);
    }

    .requirement.valid {
        color: var(--brand-success);
    }

    .requirement.invalid {
        color: var(--brand-error);
    }

/* Terms */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 0.5rem;
    gap: 0.6rem;
    font-size: 0.96rem;
}

    .terms-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--brand-accent);
        border-radius: 5px;
        border: 1.5px solid #31c5f88c;
        background: linear-gradient(135deg, #222738 0%, #31c5f825 100%);
        cursor: pointer;
        box-shadow: 0 1.5px 6px #31c5f80f;
        margin-top: 4px;
    }

.terms-text {
    font-size: 0.93rem;
    color: var(--brand-accent);
    font-weight: 500;
    letter-spacing: .01em;
}

    .terms-text a {
        color: var(--brand-primary);
        font-weight: 700;
    }

        .terms-text a:hover {
            color: var(--brand-accent);
            text-decoration: underline;
        }

/* Verification code inputs: larger and fully centered (iOS-friendly) */
.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 0.48rem;
    margin: 0.9rem 0 0.45rem;
}

.verification-digit {
    width: 64px;
    height: 64px;
    max-width: 64px;
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-text);
    border: 1.8px solid #24314d;
    border-radius: 12px;
    background: var(--brand-bg-light);
    box-shadow: 0 3px 10px #31c5f80b;
    transition: var(--transition);
    text-align: center;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    padding: 0;
}

    .verification-digit:focus {
        border-color: var(--brand-accent);
        background-color: var(--brand-bg);
        box-shadow: var(--brand-focus);
    }

@media (max-width: 650px) {
    .signup-container {
        max-width: 94vw;
        margin: 20px auto;
        padding: 1.2rem 4vw 1.6rem;
        border-radius: 18px;
    }

    .form-header h2 {
        font-size: 1.22rem;
    }

    .form-control {
        font-size: 0.98rem;
    }

    .verification-code-container {
        gap: 0.4rem;
    }

    .verification-digit {
        width: 56px;
        height: 56px;
        max-width: 56px;
        font-size: 26px;
        border-radius: 12px;
    }
}

@media (max-width: 430px) {
    .form-header h2 {
        font-size: 1.08rem;
    }

    .verification-code-container {
        gap: 0.28rem;
    }

    .verification-digit {
        width: 52px;
        height: 52px;
        max-width: 52px;
        font-size: 24px;
        border-radius: 10px;
    }
}

/* Success */
.success-message {
    text-align: center;
    padding: 2.3rem 1.3rem;
}

.success-icon {
    font-size: 3.8rem;
    color: var(--brand-success);
    margin-bottom: 1.1rem;
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(25,30,46,0.91);
    z-index: 9000;
    justify-content: center;
    align-items: center;
    animation: fadeInDash .3s;
}

.loading-content {
    background: var(--brand-glass-bg);
    padding: 2.1rem 2.2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--brand-shadow);
    border: var(--brand-glass-border);
}

.loading-spinner {
    border: 6px solid #212738;
    border-radius: 50%;
    border-top: 6px solid var(--brand-accent);
    width: 34px;
    height: 34px;
    animation: spin 1s linear infinite;
    margin: 0 auto .8rem;
}

.loading-text {
    font-weight: 700;
    color: var(--brand-accent);
    font-size: 1.06rem;
}

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

/* Resend */
.resend-code {
    text-align: center;
    margin-top: 0.7rem;
    font-size: 0.99rem;
    color: var(--brand-text-muted);
}

    .resend-code a {
        color: var(--brand-accent);
        font-weight: 700;
    }

        .resend-code a:hover {
            color: var(--brand-primary);
            text-decoration: underline;
        }

/* Background decoration */
body::before, body::after {
    content: '';
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    width: 330px;
    height: 330px;
    top: -110px;
    left: -100px;
    background: radial-gradient(ellipse at center, #31c5f8 0%, #33e27c 60%, rgba(25,30,46,0.0) 100%);
    opacity: .22;
    filter: blur(4px);
}

body::after {
    width: 220px;
    height: 220px;
    bottom: -60px;
    right: -60px;
    background: radial-gradient(ellipse at center, #33e27c 0%, #222738 80%, rgba(49,197,248,0.0) 100%);
    opacity: .13;
    filter: blur(5px);
}

/* Flatpickr modal adjustments */
.flatpickr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.28);
    z-index: 99990 !important;
    pointer-events: auto;
}

    .flatpickr-modal-overlay[hidden] {
        display: none;
    }

.flatpickr-calendar.flatpickr-modal-center.open {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%,-50%) !important;
    z-index: 99999 !important;
    box-shadow: 0 8px 32px 0 rgba(49,197,248,0.18), 0 1.5px 6px rgba(30,41,59,0.11);
    border-radius: 16px;
    min-width: 320px;
    max-width: 94vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Replace ONLY the notify overlay + modal rules with the ones below */

/* Premium notification modal */
.notify-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 99996;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

    .notify-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

.notify-modal {
    position: fixed;
    z-index: 99997;
    /* Proper centering – no bottom anchoring */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.96);
    /* Make it smaller and content-sized */
    width: min(420px, calc(100vw - 32px));
    max-height: 80vh;
    background: var(--brand-glass-bg);
    border: var(--brand-glass-border);
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(0,0,0,.35), 0 8px 24px rgba(49,197,248,.08);
    padding: 16px 16px 14px;
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
}

    .notify-modal.open {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }

/* Hide old header X if still present somewhere */
.notify-close {
    display: none !important;
}

.notify-icon {
    text-align: center;
    font-size: 26px;
    color: var(--brand-accent);
    margin: 2px 0 6px;
}

.notify-title {
    text-align: center;
    margin: 0 0 6px;
    color: #eaf1fa;
    font-weight: 800;
    font-size: 1.05rem;
}

.notify-message {
    color: #b9c7df;
    text-align: center;
    font-size: .98rem;
    margin: 0 8px 10px;
}

/* Footer actions with Close in footer */
.notify-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

/* Accessibility */
.bold-txt {
    font-weight: 800;
    color: var(--brand-primary);
}
