/* ==========================================
   Registration Form Styles
   ========================================== */

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

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e0e7ff;
    background: linear-gradient(135deg, #0f0a1a 0%, #1a0e2e 25%, #2d1b4e 50%, #1a0e2e 75%, #0f0a1a 100%);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================
   Header
   ========================================== */

.form-header {
    background: rgba(15, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 40px;
    width: auto;
}

.techxchange-logo {
    height: 35px;
    width: auto;
}

/* ==========================================
   Main Form Container
   ========================================== */

main.form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.form-wrapper {
    width: 100%;
    max-width: 600px;
    background: rgba(26, 14, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Form Header
   ========================================== */

.form-header-content {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header-content p {
    color: #a78bfa;
    font-size: 14px;
}

/* ==========================================
   Form Groups
   ========================================== */

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #e0e7ff;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(55, 48, 163, 0.1);
    border: 1.5px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #e0e7ff;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    background: rgba(55, 48, 163, 0.15);
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #7c3aed;
    opacity: 0.6;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

select option {
    background: #1a0e2e;
    color: #e0e7ff;
}

textarea {
    resize: vertical;
    font-family: inherit;
}

/* Field validation states */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* ==========================================
   Error Messages
   ========================================== */

.error-message {
    display: block;
    color: #fca5a5;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group.error .error-message {
    opacity: 1;
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fca5a5;
    font-size: 14px;
}

.error-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

/* ==========================================
   Success Message
   ========================================== */

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #86efac;
    font-size: 14px;
}

.success-message i {
    font-size: 18px;
    flex-shrink: 0;
}

/* ==========================================
   Privacy Notice
   ========================================== */

.privacy-notice {
    background: rgba(168, 85, 247, 0.05);
    border-left: 3px solid #a855f7;
    padding: 12px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.privacy-notice p {
    font-size: 12px;
    color: #c4b5fd;
    line-height: 1.5;
}

/* ==========================================
   Submit Button
   ========================================== */

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(168, 85, 247, 0.4);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-text {
    display: inline;
}

/* ==========================================
   Required Fields Note
   ========================================== */

.required-note {
    text-align: center;
    font-size: 12px;
    color: #a78bfa;
    margin-top: 15px;
}

/* ==========================================
   Footer
   ========================================== */

.form-footer {
    background: rgba(15, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding: 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 30px;
    width: auto;
}

.form-footer p {
    font-size: 12px;
    color: #a78bfa;
}

.form-footer a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #ec4899;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }

    .form-header-content h1 {
        font-size: 24px;
    }

    .form-header-content p {
        font-size: 13px;
    }

    main.form-container {
        padding: 20px 10px;
    }

    .logo-section {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        height: 35px;
    }

    .techxchange-logo {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .form-header-content h1 {
        font-size: 22px;
    }

    .form-header-content p {
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-submit {
        font-size: 14px;
        padding: 12px;
    }
}
