/* ===================================
   REGISTRATION PAGE STYLES
   Premium Design System
   =================================== */

/* === REGISTRATION SECTION === */
.register-section {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.register-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.08), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.08), transparent 50%);
    pointer-events: none;
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 10;
}

/* === LEFT COLUMN - INFO === */
.register-info {
    position: sticky;
    top: 120px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--electric-cyan);
    transform: translateX(-4px);
}

.register-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, var(--electric-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(124, 58, 237, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 20px;
    color: var(--electric-cyan);
}

.benefit-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.benefit-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === RIGHT COLUMN - FORM === */
.register-form-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.register-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* === FORM ELEMENTS === */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--electric-cyan);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Select Dropdown */
select.form-input {
    cursor: pointer;
    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='%2394A3B8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--electric-cyan);
}

/* === CHECKBOX === */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--card-border);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--electric-cyan), var(--neo-purple));
    border-color: var(--electric-cyan);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.checkbox-text a {
    color: var(--electric-cyan);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.checkbox-text a:hover {
    opacity: 0.8;
}

/* === BUTTONS === */
.btn-full {
    width: 100%;
    margin-top: 8px;
}

.form-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--card-border);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

.form-divider span {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--card-bg);
    padding: 0 16px;
}

/* === SOCIAL LOGIN === */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--electric-cyan);
    transform: translateY(-2px);
}

.btn-social i {
    font-size: 16px;
}

/* === FORM FOOTER === */
.form-footer-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 16px;
}

.login-link {
    color: var(--electric-cyan);
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: opacity 0.3s ease;
}

.login-link:hover {
    opacity: 0.8;
}

/* === TRUST INDICATORS === */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-indicators .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.trust-indicators .trust-item i {
    color: var(--electric-cyan);
    font-size: 14px;
}

/* === SUCCESS MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    animation: slideUp 0.4s ease;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(124, 58, 237, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 40px;
    color: var(--electric-cyan);
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .register-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .register-info {
        position: relative;
        top: 0;
    }
    
    .register-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .register-section {
        padding: 100px 0 60px;
    }
    
    .register-card {
        padding: 32px 24px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 16px;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .register-title {
        font-size: 32px;
    }
    
    .benefit-item {
        gap: 16px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
    }
    
    .benefit-icon i {
        font-size: 18px;
    }
    
    .form-input {
        padding: 12px 16px 12px 44px;
        font-size: 14px;
    }
}

/* === LOGO LINK === */
.logo-link {
    text-decoration: none;
}

/* === VALIDATION STATES === */
.form-input:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: rgba(34, 211, 238, 0.3);
}

/* === LOADING STATE === */
.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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