@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Gold/Black Theme - Premium Look */
:root {
    --gold-main: #D4AF37;
    --gold-light: #FFD700;
    --gold-dark: #AA8C2C;
    --gold-glow: rgba(212, 175, 55, 0.45);
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --card-bg: rgba(20, 18, 15, 0.95);
    --card-border: rgba(212, 175, 55, 0.3);
    --input-bg: rgba(212, 175, 55, 0.06);
    --input-border: rgba(212, 175, 55, 0.25);
    --text-main: #ffffff;
    --text-muted: #b8b8b8;
    --border-glow: rgba(212, 175, 55, 0.5);
    --accent: #D4AF37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0d08 50%, #0a0a0a 100%);
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0d08 50%, #0a0a0a 100%) !important;
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 20px 0;
}

/* Gold glow background animation - subtle premium look */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 40%, transparent 70%);
    border-radius: 50%;
    animation: goldBlob1 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -20%;
    width: 75vw;
    height: 75vw;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.05) 0%, rgba(100, 80, 30, 0.02) 45%, transparent 70%);
    border-radius: 50%;
    animation: goldBlob2 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
}

@keyframes goldBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6%, 10%) scale(1.2); }
}

@keyframes goldBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-6%, -10%) scale(1.15); }
}

/* WRAPPER */
.signup-wrapper {
    width: 100%;
    max-width: none;
    padding: 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARD */
#signupFormView {
    background: var(--card-bg);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    border: 2px solid var(--card-border);
    border-radius: 24px;
    padding: 45px 35px 40px;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(212, 175, 55, 0.15),
        0 0 40px rgba(212, 175, 55, 0.12),
        inset 0 1px 0 rgba(212, 175, 55, 0.15),
        inset 0 -1px 0 rgba(212, 175, 55, 0.08);
    position: relative;
    overflow: hidden;
    animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    width: 100%;
    max-width: 480px;
}}

#signupFormView::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.08) 0%, transparent 55%);
    pointer-events: none;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* HEADER */
.signup-header {
    text-align: center;
    margin-bottom: 32px;
}

.signup-header .logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8B7500 0%, #D4AF37 50%, #FFD700 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow:
        0 10px 40px rgba(212, 175, 55, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: iconPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.signup-header .logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(212, 175, 55, 0.6),
            0 0 0 1px rgba(212, 175, 55, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 15px 50px rgba(212, 175, 55, 0.8),
            0 0 0 1px rgba(212, 175, 55, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.signup-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 20%, #FFD700 55%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.signup-header p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* FORM GROUPS */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-main);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* INPUT */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.input-container:focus-within {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-main);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.input-container input {
    flex: 1;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    border: none;
    outline: none;
}

.input-container input::placeholder {
    color: var(--text-muted);
}

/* Eye icon */
.eye-icon {
    cursor: pointer;
    color: var(--gold-main);
    font-size: 16px;
    transition: color 0.2s ease;
    margin-left: 8px;
}

.eye-icon:hover {
    color: var(--gold-light);
}

/* Input icons */
.input-icon {
    color: var(--gold-main);
    margin-right: 10px;
    font-size: 16px;
}

/* Country prefix styling */
.country-prefix {
    color: var(--gold-main);
    font-weight: 700;
    margin-right: 8px;
    font-size: 15px;
}

/* LINKS */
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 24px;
    font-size: 12px;
}

.auth-links a {
    color: var(--gold-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-links a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* SUBMIT BUTTON */
.submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(180deg, #FFD700 0%, #FFC700 45%, #D4AF37 100%);
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 12px 28px rgba(212, 175, 55, 0.5),
        0 8px 16px rgba(212, 175, 55, 0.3),
        0 0 1px rgba(212, 175, 55, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        inset 0 -3px 8px rgba(100, 70, 0, 0.3);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(100, 70, 0, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.submit-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, #FFDF4D 0%, #FFD700 45%, #E6B800 100%);
    box-shadow:
        0 18px 40px rgba(212, 175, 55, 0.7),
        0 12px 24px rgba(212, 175, 55, 0.5),
        0 0 2px rgba(255, 255, 255, 1),
        inset 0 1px 3px rgba(255, 255, 255, 0.6),
        inset 0 -3px 10px rgba(100, 70, 0, 0.4);
}

.submit-btn:active {
    transform: scale(0.98) translateY(-1px);
    box-shadow:
        0 8px 16px rgba(212, 175, 55, 0.4),
        0 4px 8px rgba(212, 175, 55, 0.2),
        inset 0 -1px 4px rgba(100, 70, 0, 0.5);
}

/* REGISTER LINK */
.login-link {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--text-muted);
}

.login-link a {
    color: var(--gold-main);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.login-link a:hover {
    color: var(--gold-light);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .signup-wrapper {
        padding: 15px;
    }

    #signupFormView {
        padding: 35px 25px 30px;
        border-radius: 20px;
    }

    .signup-header h1 {
        font-size: 24px;
    }

    .signup-header p {
        font-size: 13px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Loading state */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success/Error animations */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-group {
    animation: slideInLeft 0.4s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }

/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.success-modal {
    background: var(--card-bg);
    backdrop-filter: blur(36px);
    border: 2px solid var(--card-border);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.95);
}
