:root {
    --navy: #0d2240;
    --navy-light: #163459;
    --teal: #1a8a8a;
    --teal-light: #22b5b5;
    --sand: #f4ede0;
    --gold: #c9a84c;
    --gold-dark: #a8872e;
    --gold-light: #e4c97a;
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 1.5rem 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(26, 138, 138, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(201, 168, 76, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 60% 30%, rgba(22, 52, 89, 0.4) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bg-wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    opacity: 0.12;
}

/* ── Wrapper ── */
.register-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    padding: 2.4rem 2rem 2rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* ── Logo ── */
.register-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.register-logo img {
    height: 52px;
    width: auto;
}

/* ── Heading ── */
.register-heading {
    text-align: center;
    margin-bottom: 1.8rem;
}

.register-heading h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.register-heading p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.50);
}

/* ── Google button ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.72rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    margin-bottom: 1.4rem;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    color: #fff;
}

.btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
}

.divider span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Two columns ── */
.fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 420px) {
    .fields-row {
        grid-template-columns: 1fr;
    }
}

/* ── Field group ── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.field-group.full {
    grid-column: 1 / -1;
}

.field-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-wrap {
    position: relative;
}

.field-wrap i.icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.95rem;
    pointer-events: none;
}

.field-wrap input,
.field-wrap select {
    width: 100%;
    padding: 0.72rem 0.9rem 0.72rem 2.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.field-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.field-wrap input:focus,
.field-wrap select:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.09);
}

.field-wrap select option {
    background: var(--navy);
    color: #fff;
}

/* Password toggle */
.pwd-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.pwd-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Password strength ── */
.pwd-strength {
    margin-top: 0.35rem;
    display: flex;
    gap: 4px;
}

.pwd-strength-bar {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.10);
    transition: background 0.3s;
}

.pwd-strength-bar.weak {
    background: #e05454;
}

.pwd-strength-bar.medium {
    background: var(--gold);
}

.pwd-strength-bar.strong {
    background: #3dbf7e;
}

.pwd-strength-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.25rem;
}

/* ── Terms ── */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.3rem;
    margin-top: 0.3rem;
}

.terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--gold);
    flex-shrink: 0;
    cursor: pointer;
}

.terms-row label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    line-height: 1.45;
}

.terms-row label a {
    color: var(--gold-light);
    text-decoration: none;
}

.terms-row label a:hover {
    color: #fff;
}

/* ── Submit ── */
.btn-register {
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: box-shadow 0.2s, transform 0.15s, filter 0.2s;
    box-shadow: 0 4px 18px rgba(201, 168, 76, 0.35);
}

.btn-register:hover {
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.55);
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn-register:active {
    transform: translateY(0);
}

/* ── Login link ── */
.login-row {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.40);
}

.login-row a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-row a:hover {
    color: #fff;
}

/* ── Back link ── */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.4rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.30);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 480px) {
    .register-card {
        padding: 2rem 1.4rem 1.6rem;
        border-radius: 18px;
    }

    .register-heading h1 {
        font-size: 1.4rem;
    }
}


/* ── Modal overlay ── */
.policy-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.policy-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.policy-modal {
    background: #0f2846;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    width: 100%;
    max-width: 540px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.25s ease both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.policy-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.policy-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.policy-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.policy-modal-body {
    padding: 1.2rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 168, 76, 0.3) transparent;
}

.policy-modal-body::-webkit-scrollbar {
    width: 4px;
}

.policy-modal-body::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 2px;
}

.policy-modal-body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 1.1rem 0 0.35rem;
    letter-spacing: 0.03em;
}

.policy-modal-body h3:first-child {
    margin-top: 0;
}

.policy-modal-body p {
    margin-bottom: 0.6rem;
}

.policy-modal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
}

.policy-modal-body ul li {
    margin-bottom: 0.3rem;
}

.policy-modal-footer {
    padding: 1rem 1.5rem 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.policy-accept-btn {
    width: 100%;
    padding: 0.72rem 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.policy-accept-btn:hover {
    box-shadow: 0 6px 22px rgba(201, 168, 76, 0.5);
    transform: translateY(-1px);
}