/* Neo Modal Styles */

.neo-modal {
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.neo-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, transparent 45%, rgba(0, 255, 255, 0.05), transparent 55%);
    transform: rotate(30deg);
    pointer-events: none;
    opacity: 0.5;
}

.neo-modal-header {
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding: 1.5rem;
}

.neo-modal-title {
    color: var(--neon-primary);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.neo-btn-close {
    color: var(--neon-primary);
    opacity: 0.8;
    transition: var(--transition);
}

.neo-btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.neo-modal-body {
    padding: 2rem;
}


/* Tabs */

.neo-tabs {
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.neo-tab-item {
    margin-right: 0.5rem;
}

.neo-tab-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.neo-tab-link.active {
    background: rgba(0, 255, 255, 0.2);
    color: var(--neon-primary);
    border-color: var(--neon-primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.neo-tab-link:hover:not(.active) {
    background: rgba(0, 255, 255, 0.15);
}

.tab-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}


/* Form Styles */

.neo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.neo-form-group {
    position: relative;
}

.neo-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.1rem;
}

.label-optional {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.neo-input-wrapper {
    position: relative;
}

.neo-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.neo-input:focus {
    outline: none;
    border-color: var(--neon-primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.neo-input:focus+.input-glow {
    opacity: 1;
    animation: slide 1.5s infinite;
}

.neo-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}


/* File Upload */

.neo-file-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.neo-file-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px dashed rgba(0, 255, 255, 0.3);
    border-radius: var(--border-radius);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
}

.neo-file-label:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--neon-primary);
}

.neo-file-input {
    display: none;
}

.neo-avatar-preview {
    width: 90px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--neon-primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.neo-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Buttons */

.neo-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.neo-btn-primary {
    background: var(--neon-primary);
    color: var(--color-dark-bg);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.neo-btn-secondary {
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-primary);
    border: 1px solid var(--neon-primary);
}

.neo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

.neo-btn:hover .btn-glow {
    opacity: 0.6;
    animation: slide 1.5s infinite;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}

.neo-submit-btn {
    width: 100%;
    margin-top: 1rem;
}


/* Biometric Section */

.neo-biometric-section {
    margin: 2rem 0;
    text-align: center;
}

.neo-divider {
    position: relative;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.5);
}

.neo-divider::before,
.neo-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 255, 0.3), transparent);
}

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

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

.neo-biometric-btn {
    width: 100%;
}

.neo-status-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-primary);
    display: none;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-close {
    background: none;
    border: none;
    color: var(--neon-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.3rem;
}


/* Animations */

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* Responsive */

@media (max-width: 768px) {
    .neo-modal-body {
        padding: 1.5rem;
    }
    .neo-tab-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .neo-form {
        gap: 1rem;
    }
    .neo-input {
        padding: 0.7rem 1rem;
    }
}