* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* =========================================
   NAVBAR FOR CREATE PROFILE PAGE
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(to bottom, #1a1a1a env(safe-area-inset-top), rgba(26, 26, 26, 0.98) env(safe-area-inset-top));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-right: auto;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(100px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    color: #ffffff;
}

.container {
    background: rgba(24, 24, 24, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 18px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 16px 64px rgba(0, 0, 0, 0.04),
        0 32px 128px rgba(0, 0, 0, 0.02);
    max-width: 520px;
    width: 100%;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 8px;
}

.logo p {
    color: #a0a0a0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #D4A574;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.15);
}

input::placeholder {
    color: #666666;
}

.password-hint {
    display: block;
    margin-top: -10px;
    margin-bottom: 20px;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.35;
    width: 100%;
}

select {
    cursor: pointer;
}

select option {
    background: #1a1a1a;
    color: #ffffff;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #D4A574;
}

.checkbox-group label {
    margin: 0;
    font-size: 13px;
    color: #c0c0c0;
    line-height: 1.5;
}

.checkbox-group a {
    color: #D4A574;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-group a:hover {
    color: #E5C17A;
}

.consent-link-button {
    margin-left: 6px;
    border: none;
    background: none;
    color: #D4A574;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.consent-link-button:hover {
    color: #E5C17A;
}

.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #D4A574 0%, #C9A961 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    position: relative;
    background: #1a1a1a;
    padding: 0 16px;
    color: #808080;
    font-size: 13px;
}

.signin-link {
    text-align: center;
    margin-top: 24px;
    color: #a0a0a0;
    font-size: 14px;
}

.signin-link a {
    color: #D4A574;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signin-link a:hover {
    color: #E5C17A;
}

.auth-message {
    min-height: 22px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #c8c8c8;
    padding: 0;
}

.auth-message:empty {
    min-height: 0;
    margin-bottom: 12px;
    padding: 0;
}

.auth-message.is-error {
    color: #ffd0d0;
}

.auth-message.is-success {
    color: #f1dfbf;
}

.auth-message.is-info {
    color: #d4d4d4;
}

.consent-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.consent-modal-overlay.active {
    display: flex;
}

.consent-modal {
    width: 100%;
    max-width: 560px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.consent-modal h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #ffffff;
}

.consent-modal p,
.consent-modal li {
    color: #d2d2d2;
    line-height: 1.5;
    font-size: 14px;
}

.consent-modal ul {
    margin: 14px 0 10px 20px;
}

.consent-note {
    margin-top: 8px;
    color: #b8b8b8;
}

.consent-modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-consent-secondary,
.btn-consent-primary {
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-consent-secondary {
    background: #2f2f2f;
    color: #f2f2f2;
}

.btn-consent-primary {
    background: linear-gradient(135deg, #D4A574 0%, #C9A961 100%);
    color: #1a1a1a;
}

.btn-consent-secondary:hover,
.btn-consent-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

@media (max-width: 600px) {
    .container {
        padding: 32px 24px;
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.15),
            0 4px 16px rgba(0, 0, 0, 0.12),
            0 8px 32px rgba(0, 0, 0, 0.08),
            0 16px 64px rgba(0, 0, 0, 0.04),
            0 32px 128px rgba(0, 0, 0, 0.02);
    }

    .logo h1 {
        font-size: 28px;
    }

    .logo-img {
        height: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body {
        padding: 16px;
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .nav-container {
        padding: 0 14px;
    }

    .nav-logo {
        font-size: 14px;
        gap: 6px;
    }

    .nav-logo-text {
        display: none; /* Skull/logo image only on phone */
    }

    .logo h1 {
        font-size: 26px;
    }

    .btn {
        padding: 14px;
        font-size: 15px;
    }

    .consent-modal {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .consent-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-consent-secondary,
    .btn-consent-primary {
        width: 100%;
    }
}