/* =========================================================
   DARFCLOUD NEW USER
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Rajdhani', sans-serif;
    color: #ffffff;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(
            rgba(10, 10, 18, 0.3),
            rgba(22, 11, 36, 0.4)
        ),
        url('../images/background_optimized.jpg') no-repeat center center fixed;
    background-size: 100% 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            transparent 40%,
            rgba(0, 0, 0, 0.4) 90%
        );
    pointer-events: none;
    z-index: 0;
}


/* =========================================================
   PAGE
   ========================================================= */

/* Fixed logo */
.newuser-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.newuser-logo-link {
    display: block;
    pointer-events: auto;
}

.newuser-logo {
    display: block;
    width: 180px;
    height: auto;
}


/* Page heading */
.newuser-heading {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 90px 40px 0;
    text-align: center;
    margin-bottom: 35px;
}

.newuser-kicker {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #00f0ff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.newuser-heading h1 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.1;
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.25),
        0 0 35px rgba(181, 0, 255, 0.25);
}


/* =========================================================
   NEW USER CARD
   ========================================================= */

.newuser-main {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 40px;
}

.newuser-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 38px 50px 45px;
    text-align: center;
    background: rgba(8, 10, 25, 0.78);
    border: 1px solid rgba(181, 0, 255, 0.35);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 25px rgba(181, 0, 255, 0.08);
}

.newuser-card:hover {
    border-color: rgba(181, 0, 255, 0.7);
    box-shadow:
        0 0 30px rgba(181, 0, 255, 0.2),
        0 0 60px rgba(181, 0, 255, 0.08);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.card-icon {
    color: #b500ff;
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 18px;
    text-shadow: 0 0 12px rgba(181, 0, 255, 0.7);
}

.card-label {
    color: #d06cff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.newuser-card h2 {
    margin: 0 0 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.form-intro {
    max-width: 430px;
    margin: 0 auto 25px;
    font-size: 1.1rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

/* Paused-registration penguin */
.registration-paused-image {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 20px auto 24px;
    border: 2px solid rgba(0, 240, 255, 0.35);
    border-radius: 8px;
    box-shadow:
        0 0 14px rgba(0, 240, 255, 0.12),
        0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Waiting-list email link */
.form-intro a {
    color: #00f0ff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.form-intro a:hover,
.form-intro a:focus {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.65);
}


/* =========================================================
   FORM
   ========================================================= */

#newuser-form,
#verification-form {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.form-field {
    width: 100%;
    margin-bottom: 18px;
    text-align: left;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.form-field input {
    width: 100%;
    padding: 11px 13px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #d8f5df;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(181, 0, 255, 0.3);
    border-radius: 6px;
    outline: none;
}

.form-field input:focus {
    border-color: rgba(181, 0, 255, 0.8);
    box-shadow: 0 0 10px rgba(181, 0, 255, 0.15);
}

.form-field input[type="password"] {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #d8f5df;
}

/* Registration errors: solid background and readable text */
.form-error {
    margin: 0 0 18px;
    padding: 14px 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    color: #ff7777 !important;
    -webkit-text-fill-color: #ff7777 !important;
    background: rgba(12, 18, 30, 0.98) !important;
    background-image: none !important;
    text-shadow: none !important;
    border: 1px solid rgba(255, 119, 119, 0.45);
    border-radius: 8px;
    overflow-wrap: anywhere;
}

/* Hide empty error messages */
.form-error:empty {
    display: none;
}

/* Password-reset link: larger and bright cyan */
.form-error a {
    display: inline-block;
    margin-top: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    color: #00f0ff !important;
    -webkit-text-fill-color: #00f0ff !important;
    background: transparent !important;
    background-image: none !important;
    text-decoration: underline !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.35) !important;
}

.form-error a:hover,
.form-error a:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7) !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.newuser-buttons {
    display: flex;
    gap: 15px;
    margin-top: 28px;
}

.newuser-button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
}


/* Primary submit button */

.submit-button {
    background: rgba(10, 10, 25, 0.65);
    border: solid 2px transparent;
    background-clip: padding-box;
    position: relative;
}

.submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #b500ff, #ff3cac);
}


/* Muted, low-priority cancel button */

.cancel-button {
    background: rgba(65, 65, 70, 0.55);
    border: 2px solid #55565a;
    color: #a5a5a8;
    position: relative;
}

.newuser-button:hover {
    transform: translateY(-2px);
}

.submit-button:hover {
    box-shadow:
        0 0 20px rgba(181, 0, 255, 0.4),
        0 0 40px rgba(255, 60, 172, 0.2);
}

.cancel-button:hover {
    background: rgba(75, 75, 80, 0.65);
    border-color: #66676b;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.newuser-button span {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.submit-button:hover span {
    transform: translateX(4px);
}

.cancel-button:hover span {
    transform: rotate(90deg);
}


/* =========================================================
   FOOTER
   ========================================================= */

.newuser-footer {
    position: relative;
    z-index: 2;
    margin-top: 55px;
    padding: 0 40px 30px;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}


/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 600px) {
    .newuser-heading {
        padding: 100px 20px 0;
        margin-bottom: 28px;
    }

    .newuser-kicker {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .newuser-main {
        padding: 0 16px;
    }

    .newuser-card {
        padding: 30px 22px 35px;
    }

    .newuser-card h2 {
        font-size: 1.25rem;
    }

    .newuser-buttons {
        gap: 10px;
    }

    .newuser-button {
        padding: 12px 10px;
        font-size: 0.75rem;
    }

    .newuser-logo {
        width: 130px;
    }

    .newuser-footer {
        margin-top: 35px;
        padding-bottom: 20px;
    }

    .form-error {
        font-size: 1.25rem;
        padding: 12px;
    }

    .form-error a {
        font-size: 1.5rem;
    }

    .registration-paused-image {
        max-width: 240px;
        margin: 18px auto 22px;
    }
}

