/* Authentication UI Styles - Cyberpunk Theme */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 212, 255, 0.25);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-modal {
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 24px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-modal:hover {
    background: linear-gradient(135deg, var(--danger), #ff5588);
    color: white;
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 500;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1),
                0 8px 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

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

.form-hint {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.error-message {
    display: none;
    padding: 14px 18px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--danger);
    border-radius: 12px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
}

.success-message {
    display: none;
    padding: 14px 18px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    border-radius: 12px;
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
}

.form-submit {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

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

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-dim);
}

.form-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.form-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* User Info Display */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.user-info:hover {
    background: var(--surface-2);
    border-color: var(--border);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-display-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.user-badges {
    display: flex;
    gap: 6px;
}

.badge {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

.user-menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    color: var(--primary);
}

/* User Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    min-width: 220px;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.user-dropdown a {
    display: block;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.user-dropdown a:hover {
    background: var(--surface-2);
    padding-left: 24px;
}

.user-dropdown a:last-child {
    color: var(--danger);
    border-top: 1px solid var(--border);
}

.user-dropdown a:last-child:hover {
    background: rgba(255, 51, 102, 0.1);
}

/* Verification Notice */
.verification-notice {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.notice-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--warning), var(--secondary));
}

.notice-icon {
    font-size: 28px;
}

.notice-text {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
}

.notice-close {
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 20px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.notice-close:hover {
    background: var(--danger);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        padding: 28px 24px;
        max-width: 95%;
    }

    .modal-title {
        font-size: 24px;
    }

    .user-details {
        display: none;
    }

    .user-info {
        padding: 6px;
    }

    .verification-notice {
        left: 16px;
        right: 16px;
        transform: none;
        width: calc(100% - 32px);
    }

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