/* Device Login Interface Styles */

/* Device Choice Container */
.device-choice-container {
    padding: 2rem;
    background: rgba(30, 32, 60, 0.95);
    border-radius: 16px;
    border: 2px solid rgba(0, 198, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: slideInUp 0.5s ease-out;
}

/* Device Warning */
.device-warning {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.device-warning i {
    font-size: 3rem;
    color: #ff6b9d;
    margin-bottom: 1rem;
    display: block;
}

.device-warning h3 {
    color: #ff6b9d;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.device-warning p {
    color: #e1e8f0;
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Device Info Sections */
.current-device-info,
.new-device-info {
    margin-bottom: 1.5rem;
}

.current-device-info h4,
.new-device-info h4 {
    color: #00c6ff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-device-info h4 i,
.new-device-info h4 i {
    font-size: 1.2rem;
}

/* Device Cards */
.device-card {
    background: rgba(20, 22, 40, 0.8);
    border: 2px solid rgba(0, 198, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.device-card-new {
    border-color: rgba(56, 239, 125, 0.3);
    background: rgba(20, 40, 20, 0.6);
}

.device-card:hover {
    border-color: rgba(0, 198, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.1);
}

.device-card-new:hover {
    border-color: rgba(56, 239, 125, 0.5);
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.1);
}

/* Device Details */
.device-details {
    display: grid;
    gap: 0.75rem;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e1e8f0;
    font-size: 0.95rem;
}

.device-item i {
    width: 20px;
    color: #00c6ff;
    font-size: 1rem;
}

.device-card-new .device-item i {
    color: #38ef7d;
}

/* Choice Actions */
.choice-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    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;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.btn-force-login {
    background: linear-gradient(135deg, #00c6ff, #38ef7d);
    color: white;
    border: 2px solid transparent;
}

.btn-force-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.3);
    background: linear-gradient(135deg, #00a8e6, #2dd765);
}

.btn-cancel {
    background: transparent;
    color: #ff6b9d;
    border: 2px solid #ff6b9d;
}

.btn-cancel:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
}

/* Security Note */
.security-note {
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.security-note i {
    color: #00c6ff;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.security-note p {
    margin: 0;
    color: #b8c5d6;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Device Info in Login Form */
.device-info {
    background: rgba(0, 198, 255, 0.05);
    border: 1px solid rgba(0, 198, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.device-fingerprint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #00c6ff;
    font-weight: 600;
}

.device-fingerprint i {
    font-size: 1rem;
}

.device-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #b8c5d6;
}

.device-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.device-details i {
    font-size: 0.9rem;
    color: #00c6ff;
}

/* Session Monitor */
.session-monitor {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(30, 32, 60, 0.95);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 12px;
    padding: 1rem;
    max-width: 300px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.session-monitor.show {
    transform: translateX(0);
}

.session-monitor.warning {
    border-color: rgba(255, 193, 7, 0.5);
    animation: pulse 2s infinite;
}

.session-monitor.error {
    border-color: rgba(220, 53, 69, 0.5);
    animation: shake 0.5s ease-in-out;
}

.monitor-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.monitor-header i {
    font-size: 1.2rem;
    color: #ff6b9d;
}

.monitor-header h5 {
    margin: 0;
    color: #ff6b9d;
    font-size: 1rem;
}

.monitor-message {
    color: #e1e8f0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.monitor-actions {
    display: flex;
    gap: 0.5rem;
}

.monitor-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.monitor-btn-primary {
    background: #00c6ff;
    color: white;
}

.monitor-btn-primary:hover {
    background: #00a8e6;
}

.monitor-btn-secondary {
    background: transparent;
    color: #b8c5d6;
    border: 1px solid #b8c5d6;
}

.monitor-btn-secondary:hover {
    background: rgba(184, 197, 214, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .device-choice-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .choice-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        min-width: unset;
        width: 100%;
    }
    
    .device-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .session-monitor {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: unset;
        transform: translateY(-100%);
    }
    
    .session-monitor.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .device-warning {
        padding: 1rem;
    }
    
    .device-warning i {
        font-size: 2rem;
    }
    
    .device-warning h3 {
        font-size: 1.2rem;
    }
    
    .device-card {
        padding: 1rem;
    }
    
    .device-details span {
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Device Management Admin Panel */
.device-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(30, 32, 60, 0.8);
    border: 2px solid rgba(0, 198, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 198, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00c6ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b8c5d6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-sessions-table {
    background: rgba(30, 32, 60, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 198, 255, 0.2);
}

.device-sessions-table th {
    background: rgba(0, 198, 255, 0.1);
    color: #00c6ff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.device-sessions-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 198, 255, 0.1);
    color: #e1e8f0;
}

.device-sessions-table tbody tr:hover {
    background: rgba(0, 198, 255, 0.05);
}

.session-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.session-status.active {
    background: rgba(56, 239, 125, 0.2);
    color: #38ef7d;
    border: 1px solid #38ef7d;
}

.session-status.inactive {
    background: rgba(255, 107, 157, 0.2);
    color: #ff6b9d;
    border: 1px solid #ff6b9d;
} 