/**
 * Authentication Token Modal Styles
 */

.auth-token-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-token-modal.show {
    display: block;
    opacity: 1;
}

.auth-token-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.auth-token-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.2);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.auth-token-modal-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(184, 54, 255, 0.1));
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-token-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-token-modal-header h2::before {
    content: '🔐';
    font-size: 1.75rem;
}

.auth-token-modal-close {
    background: none;
    border: none;
    color: #9fa8da;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.auth-token-modal-close:hover {
    background: rgba(255, 35, 102, 0.2);
    color: #ff2366;
    transform: scale(1.1);
}

.auth-token-modal-body {
    padding: 2rem;
}

.auth-token-modal-body p {
    color: #e8eaf6;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.auth-token-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-token-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #e8eaf6;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-token-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.auth-token-input::placeholder {
    color: #5c6bc0;
}

.auth-token-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9fa8da;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.auth-token-toggle:hover {
    color: #00d4ff;
}

.auth-token-remember {
    margin-bottom: 1rem;
}

.auth-token-remember label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9fa8da;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.auth-token-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00d4ff;
}

.auth-token-error {
    background: rgba(255, 35, 102, 0.1);
    border: 1px solid rgba(255, 35, 102, 0.3);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ff2366;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-token-error::before {
    content: '⚠️';
    font-size: 1.2rem;
}

.auth-token-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.auth-token-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-token-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #9fa8da;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-token-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e8eaf6;
    transform: translateY(-2px);
}

.auth-token-btn-primary {
    background: linear-gradient(135deg, #00d4ff, #b836ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.auth-token-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.auth-token-btn-primary:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 600px) {
    .auth-token-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .auth-token-modal-header {
        padding: 1rem 1.5rem;
    }

    .auth-token-modal-header h2 {
        font-size: 1.25rem;
    }

    .auth-token-modal-body {
        padding: 1.5rem;
    }

    .auth-token-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }

    .auth-token-btn {
        width: 100%;
        justify-content: center;
    }
}
