/* ============================================
   Register Styles
   Extracted from register.html
   ============================================ */

/* Hide nav elements for clean landing page */
    .nav-tabs, header, nav, .env-banner, .header {
        display: none !important;
    }

    /* Remove default main padding for edge-to-edge design */
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Remove the spacer div that's added after the env banner */
    .env-banner + div {
        display: none !important;
    }

    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }

    body {
        font-family: var(--font-primary);
        background: var(--bg-primary);
        color: var(--text-primary);
        line-height: 1.6;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    /* Hero Section */
    .hero {
        background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
        padding: var(--space-10) 0;
        text-align: center;
        position: relative;
        overflow: hidden;
        margin-top: -1px;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -10%;
        right: -10%;
        height: 150%;
        background:
            radial-gradient(ellipse at 30% 20%, rgba(88, 115, 203, 0.25), transparent 35%),
            radial-gradient(ellipse at 70% 40%, rgba(102, 187, 106, 0.18), transparent 35%),
            radial-gradient(ellipse at 50% 60%, rgba(217, 107, 138, 0.15), transparent 35%);
        pointer-events: none;
        filter: blur(80px);
    }

    .hero-content {
        max-width: 700px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 1;
    }

    .hero h1 {
        font-size: 3rem;
        font-weight: 500;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #66bb6a, #5873CB, #D96B8A);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        color: var(--text-gray-900);
        font-weight: 300;
        margin-bottom: 0;
        line-height: 1.5;
    }

    /* Form Section */
    .form-section {
        background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
        padding: var(--space-5) 20px 80px;
        position: relative;
        overflow: hidden;
    }

    .form-section::before {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -20%;
        right: -20%;
        height: 100%;
        background:
            radial-gradient(ellipse at 50% 100%, rgba(88, 115, 203, 0.15), transparent 45%);
        pointer-events: none;
        filter: blur(100px);
    }

    .form-container {
        max-width: 600px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-xl);
        padding: var(--space-10);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 1;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-group label {
        display: block;
        font-size: 0.95rem;
        font-weight: 500;
        color: #ccc;
        margin-bottom: 8px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group select {
        width: 100%;
        padding: var(--space-3-5) 16px;
        background: var(--bg-white-5);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-md);
        color: var(--text-white);
        font-size: 1rem;
        font-family: var(--font-primary);
        transition: all 0.2s ease;
    }

    .form-group select {
        cursor: pointer;
        display: none; /* Hide native select, using custom dropdown */
    }

    .form-group select option {
        background: var(--bg-primary);
        color: var(--text-white);
    }

    /* Custom Dropdown */
    .custom-select {
        position: relative;
        width: 100%;
    }

    .custom-select-trigger {
        width: 100%;
        padding: var(--space-3-5) 16px;
        background: var(--bg-white-5);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-md);
        color: var(--text-white);
        font-size: 1rem;
        font-family: var(--font-primary);
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .custom-select-trigger:hover {
        border-color: rgba(255, 255, 255, 0.25);
    }

    .custom-select-trigger:focus,
    .custom-select.open .custom-select-trigger {
        outline: none;
        border-color: var(--brand-primary);
        background: rgba(88, 115, 203, 0.08);
        box-shadow: 0 0 0 3px rgba(88, 115, 203, 0.1);
    }

    .custom-select-trigger .placeholder {
        color: var(--text-gray-600);
    }

    .custom-select-trigger .arrow {
        font-size: 20px;
        transition: transform 0.2s ease;
        color: var(--text-gray-600);
    }

    .custom-select.open .custom-select-trigger .arrow {
        transform: rotate(180deg);
    }

    .custom-select-options {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: var(--bg-secondary, #1a1a1a);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        padding: var(--space-2) 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all 0.2s ease;
        z-index: 1000;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        max-height: 240px;
        overflow-y: auto;
    }

    .custom-select.open .custom-select-options {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .custom-select-option {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.95rem;
        font-weight: 500;
    }

    .custom-select-option:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .custom-select-option.selected {
        background: rgba(88, 115, 203, 0.15);
        color: var(--brand-primary);
    }

    .custom-select-option .material-symbols-rounded {
        font-size: 20px;
        opacity: 0.7;
    }

    .custom-select-option.disabled {
        color: var(--text-gray-600);
        cursor: default;
    }

    .custom-select-option.disabled:hover {
        background: transparent;
    }

    .form-group input:focus,
    .form-group select:focus {
        outline: none;
        border-color: var(--brand-primary);
        background: rgba(88, 115, 203, 0.08);
        box-shadow: 0 0 0 3px rgba(88, 115, 203, 0.1);
    }

    .form-group input::placeholder {
        color: var(--text-gray-600);
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .password-requirements {
        font-size: 0.8rem;
        color: var(--text-gray-800);
        margin-top: 8px;
        line-height: 1.5;
    }

    .password-requirements ul {
        margin: var(--space-2) 0 0 0;
        padding-left: 20px;
    }

    .password-requirements li {
        margin-bottom: 4px;
        transition: color 0.2s ease;
    }

    .password-requirements li.met {
        color: var(--success-light);
    }

    /* Submit Button */
    .submit-btn {
        width: 100%;
        padding: var(--space-4);
        background: linear-gradient(135deg, #5873CB, #7A91D4);
        border: none;
        border-radius: var(--radius-md);
        color: var(--text-white);
        font-size: 1.05rem;
        font-weight: 500;
        font-family: var(--font-primary);
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(88, 115, 203, 0.3);
    }

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

    .submit-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    .submit-btn .spinner {
        display: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    .submit-btn.loading .spinner {
        display: block;
    }

    .submit-btn.loading .btn-text {
        display: none;
    }

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

    /* Success Message */
    .success-message {
        display: none;
        background: rgba(102, 187, 106, 0.1);
        border: 1px solid rgba(102, 187, 106, 0.3);
        border-radius: var(--radius-lg);
        padding: var(--space-6);
        margin-bottom: 24px;
        text-align: center;
    }

    .success-message.show {
        display: block;
    }

    .success-message .icon {
        font-size: 3rem;
        margin-bottom: 12px;
    }

    .success-message h3 {
        font-size: 1.4rem;
        color: var(--success-light);
        margin-bottom: 8px;
    }

    .success-message p {
        color: var(--text-gray-900);
        font-size: 1rem;
    }

    /* Error Message */
    .error-message {
        display: none;
        background: rgba(229, 115, 115, 0.1);
        border: 1px solid rgba(229, 115, 115, 0.3);
        border-radius: var(--radius-md);
        padding: var(--space-4);
        margin-bottom: 24px;
        color: #e57373;
        font-size: 0.95rem;
    }

    .error-message.show {
        display: block;
    }

    /* Back Link */
    .back-link {
        text-align: center;
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .back-link a {
        color: var(--brand-primary);
        text-decoration: none;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: color 0.2s ease;
    }

    .back-link a:hover {
        color: #7A91D4;
    }

    @media (max-width: 640px) {
        .hero h1 {
            font-size: 2rem;
        }

        .hero-subtitle {
            font-size: 1rem;
        }

        .form-container {
            padding: var(--space-7) 20px;
        }

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