﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300,400,500,600,700,800,900&display=swap");

input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #222 inset !important; /* same as background */
    -webkit-text-fill-color: #fff !important;
    font-size: 1em !important;
    padding: 20px 10px 10px !important; /* same as your manual input */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #23242a;
}

.box {
    position: relative;
    width: 400px;
    height: 860px;
    background: #1c1c1c;
    border-radius: 16px;
    overflow: hidden;
}

    .box::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 400px;
        height: 860px;
        background: linear-gradient(0deg,transparent, transparent, #45f3ff,#45f3ff,#45f3ff);
        z-index: 1;
        transform-origin: bottom right;
        animation: animate 6s linear infinite;
    }

    .box::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 400px;
        height: 860px;
        background: linear-gradient(0deg,transparent, transparent, #45f3ff,#45f3ff,#45f3ff);
        z-index: 1;
        transform-origin: bottom right;
        animation: animate 6s linear infinite;
        animation-delay: -3s;
    }

.borderLine {
    position: absolute;
    top: 0;
    inset: 0;
}

    .borderLine::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 400px;
        height: 860px;
        background: linear-gradient(0deg,transparent, transparent, #ff2770,#ff2770,#ff2770);
        z-index: 1;
        transform-origin: bottom right;
        animation: animate 6s linear infinite;
        animation-delay: -1.5s;
    }

    .borderLine::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 400px;
        height: 860px;
        background: linear-gradient(0deg,transparent, transparent, #ff2770,#ff2770,#ff2770);
        z-index: 1;
        transform-origin: bottom right;
        animation: animate 6s linear infinite;
        animation-delay: -4.5s;
    }

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.box form {
    position: absolute;
    inset: 4px;
    background: #222;
    padding: 50px 40px;
    border-radius: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

    .box form h2 {
        color: #fff;
        font-size: 20px;
        font-weight: 500;
        text-align: center;
        letter-spacing: 0.1em;
    }

    .box form .inputBox {
        position: relative;
        width: 300px;
        margin-top: 35px;
    }

        .box form .inputBox input {
            position: relative;
            width: 100%;
            padding: 20px 10px 10px;
            background: transparent;
            outline: none;
            box-shadow: none;
            border: none;
            color: transparent;
            font-size: 1em;
            letter-spacing: 0.05em;
            transition: 0.5s;
            z-index: 10;
            caret-color: #222;
        }

        .box form .inputBox span {
            position: absolute;
            left: 0;
            padding: 20px 0px 10px;
            pointer-events: none;
            color: #8f8f8f;
            font-size: 1em;
            letter-spacing: 0.05em;
            transition: 0.5s;
        }

        .box form .inputBox input:focus ~ span,
        .box form .inputBox input:valid ~ span {
            color: #fff;
            font-size: 0.75em;
            transform: translateY(-34px);
        }

        .box form .inputBox input:focus,
        .box form .inputBox input:valid {
            overflow: hidden;
            transition: 1s;
            caret-color: #45f3ff;
            color: #23242a;
        }

        .box form .inputBox i {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 2px;
            background: #fff;
            border-radius: 4px;
            overflow: hidden;
            transition: 0.5s;
            pointer-events: none;
        }

        .box form .inputBox input:focus ~ i,
        .box form .inputBox input:valid ~ i {
            height: 44px;
            border: 4px solid #45f3ff;
        }

    .box form .links {
        display: flex;
        justify-content: flex-end;
    }

    .box form .account {
        display: flex;
        justify-content: center;
    }

    .box form a {
        margin: 10px 0;
        font-size: 0.75em;
        color: #8f8f8f;
        text-decoration: none;
    }

    .box form a:hover {
        color: #45f3ff;
    }

    .box form input[type="submit"] {
        border: none;
        outline: none;
        padding: 9px 25px;
        background: #fff;
        cursor: pointer;
        border-radius: 4px;
        font-weight: 600;
        width: 100%;
        margin-top: 10px;
    }

        .box form input[type="submit"]:active {
            opacity: 0.8;
        }

form:valid input[type="submit"] {
    border: 2px solid #45f3ff;
    background-color: #45f3ff;
    color: white;
    cursor: pointer;
    width: 100%;
}

.form-check-input[type="checkbox"] {
    border-radius: 10px !important;
    width: 20px;
    height: 20px;
    border: 2px solid #45f3ff;
    cursor: pointer;
    transition: background 0.3s;
}

    .form-check-input[type="checkbox"]:checked {
        background-color: #45f3ff;
        border-color: #45f3ff;
    }

.box form .questions label {
    padding: 4px 0px 0px 10px;
    color: #8f8f8f;
}

/* JVH: Register Confirmation*/

.confirmation-content {
    position: absolute;
    inset: 4px;
    background: #222;
    padding: 50px 40px;
    border-radius: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .confirmation-content h2 {
        color: #fff;
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 20px;
    }

.confirmation-text {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

    .confirmation-text .highlight {
        color: #45f3ff;
        font-weight: 600;
    }

.resend {
    margin-top: 15px;
    font-size: 0.9em;
    color: #8f8f8f;
}

    .resend a {
        color: #45f3ff;
        text-decoration: none;
        font-weight: 500;
    }

        .resend a:hover {
            text-decoration: underline;
        }

/* JVH: Override status messages*/

.status-message {
    font-size: 15px;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

    /* Success (cyan neon) */
    .status-message.success {
        color: #45f3ff;
        border: 1px solid #45f3ff;
        background: rgba(69, 243, 255, 0.05);
    }

    /* Error (pink neon) */
    .status-message.error {
        color: #ff2770;
        border: 1px solid #ff2770;
        background: rgba(255, 39, 112, 0.05);
    }

:root {
    --gap: 14px;
}
/* equal padding to viewport on all sides (tweak to taste) */

html, body {
    height: 100%;
}

.stage {
    position: fixed;
    /* equal padding around the box; also respects notches on iOS */
    inset: calc(env(safe-area-inset-top) + var(--gap)) calc(env(safe-area-inset-right) + var(--gap)) calc(env(safe-area-inset-bottom) + var(--gap)) calc(env(safe-area-inset-left) + var(--gap));
    display: flex;
    align-items: center;
    justify-content: center;
    background: #23242a; /* same as body; keeps look identical */
    overflow: hidden; /* no scrollbars when scaled */
}

/* Keep your original box size; we’ll scale it with JS */
.box {
    width: 400px;
    height: 860px;
    transform-origin: center;
    will-change: transform;
}

/* Stop iOS zoom on focus */
input, select, textarea {
    font-size: 16px !important;
    -webkit-text-size-adjust: 100%;
}

/* Optional: extra-tight padding on very short/old phones */
@media (max-width: 380px), (max-height: 700px) {
    :root {
        --gap: 10px;
    }
}

/* ✅ Make the button text visible on iOS inside a transformed parent */
.box form input[type="submit"] {
    /* ensure text actually paints */
    color: #23242a; /* visible on white */
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    /* avoid UA control styling oddities */
    -webkit-appearance: none;
    appearance: none;
    /* help Safari paint when ancestor is scaled */
    transform: translateZ(0); /* create its own layer */
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* keep readability and prevent focus-zoom */
    font-size: 16px; /* stops iOS zoom on focus */
    line-height: 1.2;
}

/* When form is valid and you swap to cyan background, set white text explicitly */
form:valid input[type="submit"] {
    background-color: #45f3ff;
    border: 2px solid #45f3ff;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* (Optional) If you use a <button> element elsewhere, cover it too */
.box form button[type="submit"] {
    color: inherit;
    -webkit-text-fill-color: currentColor;
    -webkit-appearance: none;
    appearance: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    font-size: 16px;
    line-height: 1.2;
}