/* ============================================
   SIGNUP PAGE STYLES (Production-ready)
   Builds upon global styles from theme-pages.css
   ============================================ */

/* =======================
   Signup Container
   ======================= */
.signup-container {
    width: 100%;
    max-width: 450px;
    margin: 50px auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* =======================
   Form Box
   ======================= */
.form-box {
    width: 100%;
    padding: 25px 30px;
    background: rgba(36, 51, 66, 0.95);
    border-radius: 10px;
    box-sizing: border-box;
}

/* =======================
   Form Elements
   ======================= */
.form-box input[type="text"],
.form-box input[type="email"],
.form-box input[type="password"] {
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    display: block;
    box-sizing: border-box;
}

.form-box input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Form field container */
.form-box .form-field {
    width: 100%;
    margin-bottom: 15px;
}

/* =======================
   Submit Button
   ======================= */
.form-box button[type="submit"] {
    width: 100%;
    height: 44px;
    line-height: 44px;
    margin-top: 25px;
    padding: 0;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    transition: all 0.3s ease;
}

.form-box button[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.form-box button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.form-box button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

/* =======================
   Typography & Text
   ======================= */
.form-box,
.form-box *,
.form-box p,
.form-box span,
.form-box div,
.form-box label,
.form-box small,
.form-box input,
.form-box input::placeholder,
.form-box button,
.form-box .help-text,
.form-box .error-message,
.form-box .error-list,
.form-box .error-list li {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Burly heading */
.form-box .burly {
    color: burlywood;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Help text */
.form-box .help-text {
    font-size: 0.875rem;
    margin-top: 5px;
    opacity: 0.8;
    display: block;
}

/* =======================
   Error Messages
   ======================= */
.form-box .error-list {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    list-style: none;
}

.form-box .error-message {
    color: #fca5a5;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.form-box .error-list .error-message {
    margin-bottom: 5px;
}

.form-box .error-list .error-message:last-child {
    margin-bottom: 0;
}

/* ===== PASSWORD TOGGLE COMPONENT ===== */

/*.password-wrapper {
    position: relative;
    width: 100%;
}

/* password inputs *
.password-wrapper input {
    width: 100%;
    padding-right: 42px;
    height: 44px;
    line-height: 44px;
    box-sizing: border-box;
}

/* toggle button *
.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #ffffff;
    opacity: 0.75;
    z-index: 3;
}

/* hover feedback *
.password-toggle:hover {
    opacity: 1;
}

/* accessibility focus *
.password-toggle:focus {
    outline: none;
}*/

/* =======================
   Password Wrapper & Toggle
   ======================= */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 2.5rem;
    /* space for icon */
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* =======================
   Special Elements
   ======================= */
/* ===== CLOUDFLARE TURNSTILE ===== */

/* container controlling spacing and centering */
.turnstile-container {
    margin: 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* widget wrapper */
.cf-turnstile {
    max-width: 100%;
}

/* ensure iframe never overflows */
.cf-turnstile iframe {
    max-width: 100% !important;
}

/* very small screens (iPhone SE, 320px) */
@media (max-width: 360px) {
    .cf-turnstile {
        transform: scale(0.9);
        transform-origin: center;
    }
}

.signup-note {
    margin-bottom: 20px;
}

.email-sent {
    text-align: center;
    width: 100%;
    max-width: 450px;
    margin: 20px auto;
    padding: 25px 30px;
    background: rgba(36, 51, 66, 0.95);
    border-radius: 10px;
}

/* =======================
   PWA Button Hiding
   ======================= */
.pwa-install-button,
.pwa-install-container,
[class*="pwa"],
[class*="install-button"],
button[onclick*="install"],
#pwa-button,
.pwa-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
}

/* =======================
   Utility Classes
   ======================= */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-25 {
    margin-top: 25px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

/* =======================
   Responsive Adjustments
   ======================= */
@media (max-width: 500px) {
    .form-box {
        width: 95%;
        max-width: 95%;
        margin: 15px auto;
        padding: 20px 15px;
    }

    .form-box .burly {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .form-box input[type="text"],
    .form-box input[type="email"],
    .form-box input[type="password"] {
        height: 42px;
        line-height: 42px;
        padding: 0 12px;
    }

    .form-box button[type="submit"] {
        height: 42px;
        line-height: 42px;
        margin-top: 20px;
    }
}

@media (max-width: 375px) {
    .signup-container {
        margin: 30px 10px;
        padding: 0 0.8rem;
    }

    .form-box {
        padding: 20px 15px;
    }

    .form-box input[type="text"],
    .form-box input[type="email"],
    .form-box input[type="password"] {
        height: 40px;
        line-height: 40px;
        padding: 0 10px;
    }

    .form-box button[type="submit"] {
        height: 40px;
        line-height: 40px;
        font-size: 0.9rem;
    }
}

/* =======================
   Signup Navbar Adjustments
   ======================= */
@media (max-width: 768px) {
    .signup-page .brand-title {
        display: none;
    }

    .signup-page .nav-inner {
        flex-wrap: nowrap;
    }

    .signup-page .nav-text {
        margin-left: auto;
    }

    html,
    body {
        overflow-y: auto;
        height: auto;
    }
}