/* ---------------------------------
   stokesnet.xyz - register page
   (shares tokens/fonts with login.css)
------------------------------------ */

@font-face {
    font-family: 'BlackOpsOne';
    src: url('https://assets.stokesnet.xyz/fonts/BlackOpsOne.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Rajdhani';
    src: url('https://assets.stokesnet.xyz/fonts/Rajdhani.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea { -webkit-user-select: text; -ms-user-select: text; user-select: text; }

html, body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 40px 16px;
    width: 100%;
    background: var(--dark-mode-background-color);
    color: var(--dark-mode-text-color);
}

#particles-js {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-mode-background-color);
}

.register-box {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 520px;
    max-width: 100%;
    padding: 36px 34px 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.015);
    box-shadow: 0px 0px 25px 0px rgba(255, 255, 255, 0.05);
}

.register-header {
    text-align: center;
    margin: 0 0 30px 0;
}
.register-header header {
    color: var(--dark-mode-text-color);
    font-size: 40px;
    font-family: 'BlackOpsOne', -apple-system, sans-serif;
}

.field-row {
    display: flex;
    gap: 14px;
}
.field-row .input-box { flex: 1; min-width: 0; }

.input-box { margin-bottom: 18px; }

.input-box label,
.field-label {
    display: block;
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 15px;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.input-field, .select-field {
    width: 100%;
    height: 54px;
    font-size: 17px;
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.08);
    background-color: var(--dark-mode-input-background-color);
    color: var(--dark-mode-input-text-color);
    font-family: 'Rajdhani', -apple-system, sans-serif;
    outline: none;
    transition: all 0.3s ease;
}
.input-field:focus, .select-field:focus {
    box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.input-field:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* date input calendar icon visible on dark bg */
input[type="date"].input-field::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* phone number: region code select + number side by side */
.phone-row {
    display: flex;
    gap: 10px;
}
.phone-row .select-field {
    flex: 0 0 108px;
}
.phone-row .input-field {
    flex: 1;
}

/* optional / expandable section toggle */
.section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    background-color: var(--dark-mode-input-background-color);
    box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 17px;
    margin-bottom: 10px;
    transition: box-shadow .25s ease;
}
.section-toggle:hover { box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.16); }
.section-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform .25s ease;
}
.section-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.section-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
    margin-bottom: 8px;
}
.section-panel > div { overflow: hidden; }
.section-panel.is-open { grid-template-rows: 1fr; }
.section-panel-inner { padding-top: 14px; }

.input-submit { position: relative; margin-top: 8px; }

.submit-btn {
    width: 100%;
    height: 58px;
    background-color: var(--dark-mode-button-background-color);
    box-shadow: 0px 0px 15px 1px rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: var(--dark-mode-text-color);
    transition: all .4s ease-in-out;
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 24px;
    text-transform: uppercase;
}
.submit-btn:hover {
    box-shadow: 0px 0px 20px 5px rgba(255, 255, 255, 0.2);
    border-radius: 35px;
}
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.login-link {
    text-align: center;
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 18px;
    margin-top: 16px;
}
.login-link a, .register-box a {
    text-decoration: none;
    color: var(--dark-mode-text-color);
    transition: all .3s ease-in-out;
}
.login-link a:hover { color: var(--dark-mode-text-hover-color); }

.hint {
    font-family: 'Rajdhani', -apple-system, sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: -12px 0 16px 4px;
}

@media (max-width: 560px) {
    .field-row { flex-direction: column; gap: 0; }
    .register-box { padding: 28px 20px 24px; }
}
