/* ============================================================
   ActionPW — Register Page
   Style: Structural copy of login.css (absolute card in bg-top.jpg frame)
   ver: 10.0 (2026)
   ============================================================ */

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

/* === Romul font === */
@font-face {
    font-family: 'Romul';
    src: url('Romul_Regular.otf') format('opentype');
    font-display: swap;
}

/* === Design Tokens (identical to login) === */
:root {
    --gold:        #e5ba7f;
    --gold-light:  #fbebc7;
    --gold-dark:   #c49a5f;
    --gold-dim:    rgba(229, 186, 127, 0.25);
    --bg-body:     #1e0c02;
    --bg-card:     rgba(10, 4, 1, 0.72);
    --bg-input:    rgba(0, 0, 0, 0.3);
    --text-muted:  #7a5e42;
    --radius:      8px;
}

/* === Body (identical to login) === */
html {
    min-height: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background: var(--bg-body) url(../img/bg-wall.jpg) no-repeat center top;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 13px;
    color: var(--gold-light);
    overflow-x: hidden;
}

/* === Container (identical to login) === */
.container-fluid {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    min-height: 100vh !important;
}

.container-fluid::before {
    display: none !important;
}

/* === The Frame: full-width transparent container, bg-top.jpg centred 680px ===
   НЕТ width: 680px на элементе — он прозрачный и полной ширины.
   bg-top.jpg показывается ровно 680×1032px по центру.
   Нет жёсткой 680px границы → нет чёрных вертикальных полос. */
.row-fluid {
    width: 100% !important;
    min-height: 1032px;
    margin: 0 !important;
    padding: 0 !important;
    background: url(../img/bg-top.jpg) no-repeat center top;
    background-size: 680px 1032px;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    animation: frameEntrance 1s cubic-bezier(.88, .06, 0, 1.45) both;
    border: none !important;
    outline: none !important;
}

@keyframes frameEntrance {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* === Edge vignette — скрывает тёмный контраст на краях bg-top.jpg при любой ширине viewport === */
.row-fluid::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        linear-gradient(to right,
            rgba(20, 8, 2, 0.92) calc(50% - 360px),
            transparent calc(50% - 270px)
        ),
        linear-gradient(to left,
            rgba(20, 8, 2, 0.92) calc(50% - 360px),
            transparent calc(50% - 270px)
        );
    pointer-events: none;
    z-index: 0;
}

/* === Golden glow === */
.row-fluid::after {
    content: '';
    position: absolute;
    top: 365px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 520px;
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
    animation: areaGlow 4s ease-in-out infinite;
}

@keyframes areaGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(229, 186, 127, 0.04); }
    50%      { box-shadow: 0 0 80px rgba(229, 186, 127, 0.1); }
}

/* === Card — ABSOLUTE position (same as login's #container.login-box1) === */
.well.box {
    position: absolute !important;
    top: 405px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 85%;
    background: var(--bg-card) !important;
    border: 1px solid rgba(229, 186, 127, 0.18) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(229, 186, 127, 0.06);
    animation: cardGlow 4s ease-in-out infinite;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    z-index: 2;
}

/* Reset inner .well (box-header) */
.box-header.well {
    box-shadow: none !important;
    animation: none !important;
    overflow: visible;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(229, 186, 127, 0.06);
        border-color: rgba(229, 186, 127, 0.18);
    }
    50% {
        box-shadow:
            0 0 50px rgba(229, 186, 127, 0.12),
            0 0 80px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(229, 186, 127, 0.1);
        border-color: rgba(229, 186, 127, 0.35);
    }
}

/* === Title Bar (identical to login's .login) === */
.box-header.well,
.box-header {
    background: linear-gradient(135deg,
        rgba(229, 186, 127, 0.12) 0%,
        rgba(229, 186, 127, 0.04) 100%) !important;
    border: none !important;
    border-bottom: 1px solid rgba(229, 186, 127, 0.2) !important;
    border-radius: 0 !important;
    padding: 14px 18px !important;
    margin: 0 !important;
    display: block !important;
    text-align: center;
}

.box-header > div,
.box-header > div[style] {
    float: none !important;
    display: block !important;
    text-align: center;
    margin-top: 10px;
}

.box-header h2 {
    color: var(--gold) !important;
    font-family: 'Romul', Tahoma, sans-serif;
    font-size: 14px !important;
    font-weight: bold;
    letter-spacing: 0.04em;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(229, 186, 127, 0.15);
}

.box-header h2 i {
    display: none;
}

/* === Authorization button === */
.btn-inverse {
    background: rgba(229, 186, 127, 0.08) !important;
    border: 1px solid var(--gold-dim) !important;
    border-radius: 5px !important;
    color: var(--gold) !important;
    font-size: 11px !important;
    padding: 6px 14px !important;
    text-shadow: none !important;
    transition: all 0.22s ease;
    float: none !important;
    white-space: nowrap;
}

.btn-inverse:hover {
    background: rgba(229, 186, 127, 0.15) !important;
    border-color: var(--gold) !important;
    color: var(--gold-light) !important;
    box-shadow: 0 0 12px rgba(229, 186, 127, 0.15);
}

/* === Form Content — SCROLLABLE === */
.box-content {
    padding: 18px 22px 22px !important;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* === Custom Scrollbar (gold theme) === */
.box-content::-webkit-scrollbar {
    width: 6px;
}

.box-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.box-content::-webkit-scrollbar-thumb {
    background: rgba(229, 186, 127, 0.3);
    border-radius: 3px;
}

.box-content::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 186, 127, 0.5);
}

/* Firefox scrollbar */
.box-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 186, 127, 0.3) rgba(0, 0, 0, 0.2);
}

/* === Translator (language flags) === */
.translator {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
    padding-top: 2px;
}

.translator > div {
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.18s;
    line-height: 0;
}

.translator > div:hover {
    opacity: 1;
    transform: scale(1.18);
}

.translator img {
    width: 22px;
    height: 15px;
    display: block;
}

/* === Alert Messages === */
.alert {
    padding: 12px 16px !important;
    border-radius: 6px !important;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 16px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    text-shadow: none !important;
}

.alert-error,
.alert-danger {
    background: rgba(185, 74, 72, 0.2) !important;
    border: 1px solid rgba(185, 74, 72, 0.4) !important;
    color: #f0a0a0 !important;
}

.alert-success {
    background: rgba(70, 136, 71, 0.2) !important;
    border: 1px solid rgba(70, 136, 71, 0.4) !important;
    color: #90c890 !important;
}

.alert-info {
    background: rgba(58, 135, 173, 0.15) !important;
    border: 1px solid rgba(58, 135, 173, 0.35) !important;
    color: #90c8e8 !important;
}

.alert b {
    font-weight: bold;
}

.alert .close {
    color: inherit !important;
    opacity: 0.5;
    text-shadow: none !important;
}

.alert .close:hover {
    opacity: 0.9;
}

/* === Form === */
form.form-horizontal {
    margin: 0 !important;
    padding: 0 !important;
}

fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* === Form Groups === */
.control-group {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
}

.control-group:last-child {
    margin-bottom: 0 !important;
}

/* === Labels === */
.control-label {
    color: var(--gold) !important;
    font-size: 10px !important;
    font-weight: bold !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left !important;
    width: auto !important;
    float: none !important;
    padding: 0 0 5px !important;
    margin: 0 !important;
    opacity: 0.8;
    display: block !important;
}

/* === Controls wrapper === */
.controls {
    margin-left: 0 !important;
}

/* === Text Inputs === */
.input-xlarge,
.controls input[type="text"],
.controls input[type="password"] {
    width: 100% !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--gold-dim) !important;
    border-radius: 5px !important;
    color: var(--gold-light) !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px !important;
    height: auto !important;
    line-height: 1.4;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.controls input[type="text"]:focus,
.controls input[type="password"]:focus,
.input-xlarge:focus {
    border-color: var(--gold) !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(229, 186, 127, 0.25) !important;
}

/* === Placeholder === */
input::-webkit-input-placeholder { color: rgba(251, 235, 199, 0.2); }
input::-moz-placeholder          { color: rgba(251, 235, 199, 0.2); }

/* === Help text === */
.help-block,
.controls p {
    color: var(--text-muted) !important;
    font-size: 11px !important;
    margin: 4px 0 0 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

/* === Select (Chosen plugin) === */
select {
    width: 100% !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--gold-dim) !important;
    border-radius: 5px !important;
    color: var(--gold-light) !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
}

.chzn-container {
    width: 100% !important;
}

.chzn-container .chzn-single {
    background: var(--bg-input) !important;
    border: 1px solid var(--gold-dim) !important;
    border-radius: 5px !important;
    color: var(--gold-light) !important;
    padding: 7px 12px !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    font-size: 13px;
}

.chzn-container .chzn-single span {
    color: var(--gold-light) !important;
}

.chzn-container .chzn-single div b {
    background-position: 0 5px;
    filter: brightness(3);
}

.chzn-container-active .chzn-single {
    border-color: var(--gold) !important;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(229, 186, 127, 0.25) !important;
}

.chzn-container .chzn-drop {
    background: #1a0900 !important;
    border: 1px solid var(--gold-dim) !important;
    border-radius: 0 0 5px 5px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

.chzn-container .chzn-results {
    color: var(--gold-light) !important;
}

.chzn-container .chzn-results li {
    color: var(--gold-light) !important;
    padding: 8px 12px !important;
}

.chzn-container .chzn-results .highlighted {
    background: rgba(229, 186, 127, 0.15) !important;
    color: var(--gold) !important;
}

.chzn-container .chzn-results .active-result:hover {
    background: rgba(229, 186, 127, 0.12) !important;
}

/* === Password Strength Meter === */
.pstrength-bar {
    border: 1px solid rgba(229, 186, 127, 0.15) !important;
    border-radius: 3px !important;
    height: 4px !important;
    margin-top: 6px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pstrength-info {
    font-size: 11px !important;
    margin-top: 4px;
}

.pstrength-minchar {
    font-size: 11px !important;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Password strength container div */
.controls > div[style*="width: 302px"] {
    width: 100% !important;
}

/* === Checkbox (Rules) === */
.controls input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle;
    accent-color: var(--gold);
}

.controls a {
    color: var(--gold-dark) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.controls a:hover {
    color: var(--gold) !important;
    text-decoration: underline;
}

/* === Submit Button === */
.btn-success {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
    border: none !important;
    border-radius: 5px !important;
    color: #1a0900 !important;
    font-family: 'Romul', Tahoma, Arial, sans-serif;
    font-size: 14px !important;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: none !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(229, 186, 127, 0.2);
    transition: all 0.22s ease;
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
    box-shadow: 0 3px 20px rgba(229, 186, 127, 0.4);
    transform: translateY(-1px);
    color: #1a0900 !important;
    text-shadow: none !important;
}

.btn-success:active {
    transform: translateY(1px);
    box-shadow: 0 1px 8px rgba(229, 186, 127, 0.15);
}

/* === Referral alert === */
.alert-info.referral,
.control-group .alert-info {
    margin-bottom: 6px !important;
}

/* === Hide HR === */
hr {
    display: none !important;
}

/* === Site Navigation (image buttons from pvpund.com) === */
.pw-site-nav {
    position: absolute;
    top: 332px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
    gap: 0;
}

.pw-nav-btn {
    display: block;
    height: 44px;
    background-repeat: no-repeat;
    background-size: contain;
    transition: opacity 0.15s;
}
.pw-nav-btn:hover { opacity: 0.85; }

.pw-nav-btn-1 { background-image: url(../img/nav-btn1.png); width: 131px; }
.pw-nav-btn-1:hover { background-image: url(../img/nav-btn1h.png); opacity: 1; }
.pw-nav-btn-2 { background-image: url(../img/nav-btn2.png); width: 149px; }
.pw-nav-btn-2:hover { background-image: url(../img/nav-btn2h.png); opacity: 1; }
.pw-nav-btn-3 { background-image: url(../img/nav-btn3.png); width: 149px; }
.pw-nav-btn-3:hover { background-image: url(../img/nav-btn3h.png); opacity: 1; }
.pw-nav-btn-4 { background-image: url(../img/nav-btn4.png); width: 131px; }
.pw-nav-btn-4:hover { background-image: url(../img/nav-btn4h.png); opacity: 1; }

/* === Site Footer === */
footer.site-footer,
footer {
    width: 680px;
    max-width: 100%;
    margin: 12px auto 24px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    float: none !important;
}

.footer-copy,
footer p {
    color: rgba(122, 94, 66, 0.5) !important;
    font-size: 11px;
    margin: 0 !important;
    float: none !important;
    display: inline !important;
}

nav.footer-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

nav.footer-nav a,
footer a {
    color: rgba(122, 94, 66, 0.5) !important;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s;
}

nav.footer-nav a:hover,
footer a:hover {
    color: var(--gold-dark) !important;
}

/* === Responsive === */
@media (max-width: 720px) {
    body {
        padding: 24px 16px 60px !important;
        justify-content: center;
    }

    .row-fluid {
        width: 100% !important;
        min-height: auto !important;
        background: none !important;
        animation: none !important;
        position: static !important;
    }

    .row-fluid::after {
        display: none;
    }

    .well.box {
        position: static !important;
        transform: none;
        width: 400px;
        max-width: 100%;
        background: var(--bg-card) !important;
        border: 1px solid rgba(229, 186, 127, 0.25) !important;
        box-shadow:
            0 0 50px rgba(229, 186, 127, 0.1),
            0 24px 64px rgba(0, 0, 0, 0.7) !important;
        animation: none !important;
    }

    .box-content {
        max-height: none;
        overflow-y: visible;
    }

    footer {
        width: 100%;
        margin-top: 16px !important;
    }
}

@media (max-width: 440px) {
    body {
        padding-top: 16px !important;
    }

    .well.box {
        width: 100% !important;
    }

    .box-content {
        padding: 12px 12px 16px !important;
    }

    .control-label {
        font-size: 9px !important;
    }
}
