/* ==========================================
   FameThink Signup Page - Premium Design
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container {
    height: 40px;
    width: 40px;
    overflow: hidden;
}

.brand-logo {
    height: 90px;
    margin-left: -18px;
    margin-top: -20px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.navbar-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    background: transparent;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    color: rgba(212, 175, 55, 0.9);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000000;
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Signup Container */
.signup-container {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.signup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Signup Wrapper */
.signup-wrapper {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Progress Steps - Hidden for single step form */
.progress-steps {
    display: none;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active .step-icon {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-color: #d4af37;
    color: #000000;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.step.completed .step-icon {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
    color: #d4af37;
}

.step-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-align: center;
    max-width: 120px;
    transition: color 0.3s;
}

.step.active .step-label {
    color: rgba(212, 175, 55, 1);
}

.step.completed .step-label {
    color: rgba(212, 175, 55, 0.8);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    margin: 0 1rem;
    max-width: 100px;
}

.step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37, #f4d03f);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.completed + .step-line::after {
    width: 100%;
}

/* Form Container */
.form-container {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    overflow: hidden;
    padding: 3rem;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.5) 50%, 
        transparent 100%);
    opacity: 0.8;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-step-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-step-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.form-label i {
    color: #d4af37;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0.95rem 1.1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input.error {
    border-color: #ef5350;
    background: rgba(239, 83, 80, 0.05);
}

.error-message {
    display: none;
    color: #ef5350;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.form-group.has-error .error-message {
    display: block;
}

.input-hint {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.4rem;
}

/* Textarea */
textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    position: absolute;
    right: 0;
    bottom: -1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Select */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-input option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Social Input Group */
.social-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.social-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 1.1rem;
    pointer-events: none;
}

.social-input {
    padding-left: 3rem;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: rgba(212, 175, 55, 0.8);
}

/* Password Strength */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    background: #ef5350;
    border-radius: 10px;
}

.strength-fill.weak {
    width: 25%;
    background: #ef5350;
}

.strength-fill.fair {
    width: 50%;
    background: #ffa726;
}

.strength-fill.good {
    width: 75%;
    background: #66bb6a;
}

.strength-fill.strong {
    width: 100%;
    background: #4caf50;
}

.strength-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
    display: block;
}

/* Password Requirements */
.password-requirements {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.requirement i {
    font-size: 0.5rem;
    transition: color 0.3s;
}

.requirement.met {
    color: #66bb6a;
}

.requirement.met i {
    color: #66bb6a;
}

/* Security Info */
.security-info {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.security-info i {
    color: #d4af37;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-info strong {
    color: #d4af37;
    display: block;
    margin-bottom: 0.25rem;
}

.security-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Summary Card */
.summary-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card h3 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.summary-value {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Terms Section */
.terms-section {
    margin-bottom: 1.5rem;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.custom-checkbox input:checked ~ .checkmark {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #d4af37;
    font-size: 0.7rem;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.terms-link {
    color: rgba(212, 175, 55, 0.9);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.terms-link:hover {
    color: rgba(212, 175, 55, 1);
    text-decoration: underline;
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.welcome-message i {
    color: #d4af37;
    font-size: 2rem;
    flex-shrink: 0;
}

.welcome-message h4 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn-nav {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.3px;
}

.btn-submit-full {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000000;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
    padding: 1.1rem 2rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.3px;
}

.btn-submit-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #e0bb44 0%, #f9dd4f 100%);
}

.btn-submit-full:active {
    transform: translateY(0);
}

.btn-prev {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000000;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #e0bb44 0%, #f9dd4f 100%);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-nav i {
    font-size: 1rem;
}

/* Form Switch Text */
.form-switch-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.switch-link {
    color: rgba(212, 175, 55, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.switch-link:hover {
    color: rgba(212, 175, 55, 1);
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 3rem;
    color: #d4af37;
}

.success-modal-content h2 {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-modal-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-modal {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}

/* Loading State */
.btn-nav.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-nav.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-container {
        padding: 100px 1rem 3rem;
    }

    .progress-steps {
        margin-bottom: 2rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-label {
        font-size: 0.75rem;
        max-width: 80px;
    }

    .step-line {
        max-width: 50px;
        margin: 0 0.5rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-step-title {
        font-size: 1.5rem;
    }

    .form-step-subtitle {
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn-prev {
        order: 2;
    }

    .btn-next,
    .btn-submit {
        order: 1;
    }

    .success-modal-content {
        margin: 1rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .form-step-title {
        font-size: 1.3rem;
    }

    .step-label {
        display: none;
    }

    .step-line {
        max-width: 30px;
    }
}
