﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --navy: #1A2B49;
    --slate: #6B7280;
    --slate-light: #9CA3AF;
    --gold: #C8A75C;
    --teal: #2BA6A6;
    --teal-light: #3BBFBF;
    --red: #DC2626;
    --border: #E5E7EB;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.register-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 20%, rgba(43, 166, 166, 0.35) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(200, 167, 92, 0.25) 0%, transparent 50%), linear-gradient(135deg, #0F1E35 0%, #1A2B49 40%, #1e3a5f 70%, #162840 100%);
}

    .register-container::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -15%;
        width: 700px;
        height: 700px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(43, 166, 166, 0.18) 0%, transparent 65%);
        animation: floatOrb1 12s ease-in-out infinite;
        pointer-events: none;
    }

    .register-container::after {
        content: '';
        position: absolute;
        bottom: -25%;
        left: -10%;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(200, 167, 92, 0.15) 0%, transparent 65%);
        animation: floatOrb2 15s ease-in-out infinite;
        pointer-events: none;
    }

@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 40px) scale(1.08);
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -30px) scale(1.05);
    }
}

/* ─── Wrapper ───────────────────────────────────────── */
.register-wrapper {
    width: 100%;
    max-width: 580px;
    position: relative;
    z-index: 10;
    padding: 1.5rem;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Card ──────────────────────────────────────────── */
.register-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    animation: slideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    overflow-y: auto;
    max-height: calc(100vh - 3rem);
    scrollbar-width: none;
}

    .register-card::-webkit-scrollbar {
        display: none;
    }

    .register-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        border-radius: 20px 20px 0 0;
        background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 60%, var(--gold) 100%);
        background-size: 200% 100%;
        animation: shimmer 3s ease-in-out infinite;
    }

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── Header ────────────────────────────────────────── */
.register-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.2rem;
    line-height: 1;
}

.subtitle {
    color: var(--slate);
    font-size: 0.9rem;
    margin: 0;
}

/* ─── Form ──────────────────────────────────────────── */
.form-group {
    margin-bottom: 0.875rem;
}

.form-label {
    display: block;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    background: #FAFAFA;
    color: #111827;
}

    .form-input:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 3px rgba(43, 166, 166, 0.12);
        background: white;
    }

    .form-input:hover:not(:focus) {
        border-color: #C4C9D4;
    }

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--slate-light);
}

/* ─── Phone prefix ──────────────────────────────────── */
.phone-prefix {
    padding: 0.75rem 0.875rem;
    background: #F3F4F6;
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--slate);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    font-weight: 500;
    flex-shrink: 0;
}

/* ─── Password toggle ───────────────────────────────── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper .form-input {
        padding-right: 3rem;
    }

.toggle-password {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--slate-light);
    transition: color 0.2s ease;
}

    .toggle-password:hover {
        color: var(--navy);
    }

    .toggle-password svg {
        width: 17px;
        height: 17px;
    }

/* ─── Checkbox / Terms ──────────────────────────────── */
.terms-section {
    margin-bottom: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

    .checkbox-container input[type="checkbox"] {
        margin-top: 0.15rem;
        width: 16px;
        height: 16px;
        cursor: pointer;
        flex-shrink: 0;
        accent-color: var(--teal);
    }

.checkbox-label {
    color: var(--slate);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.link-inline {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

    .link-inline:hover {
        color: var(--teal-light);
    }

/* ─── Button ────────────────────────────────────────── */
.button-wrapper {
    margin-bottom: 0;
}

.btn, .btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--navy) 0%, #243D5F 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(26, 43, 73, 0.35);
}

    .btn:hover, .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(26, 43, 73, 0.45);
    }

    .btn:active, .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ─── Divider ───────────────────────────────────────── */
.divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border);
    }

    .divider span {
        position: relative;
        background: white;
        padding: 0 1rem;
        color: var(--slate-light);
        font-size: 0.8rem;
    }

/* ─── Footer links ──────────────────────────────────── */
.footer-links {
    text-align: center;
    margin-top: 1rem;
}

    .footer-links p {
        color: var(--slate);
        font-size: 0.85rem;
        margin: 0;
    }

.link {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

    .link:hover {
        color: var(--teal-light);
    }

/* ─── Validation ────────────────────────────────────── */
.validation-message {
    display: block;
    color: var(--red);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.error-message {
    color: var(--red);
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: rgba(220, 38, 38, 0.07);
    border-radius: 10px;
    border-left: 3px solid var(--red);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 540px) {
    html, body {
        overflow: auto;
        height: auto;
    }

    .register-container {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        overflow: visible;
    }

    .register-wrapper {
        padding: 1rem;
        max-height: none;
    }

    .register-card {
        padding: 1.5rem 1.25rem;
        max-height: none;
        overflow-y: visible;
        border-radius: 16px;
    }

    .brand-title {
        font-size: 1.8rem;
    }
}
