/* FIDO2/Passkey Stilleri - Login Sayfası ile Uyumlu - Kompakt Versiyon */

.fido2-container {
    margin: 12px 0;
    animation: fadeInUp 0.5s ease-out;
}

.fido2-section-card {
    background: rgba(30, 30, 30, 0.6);
    border: 2px solid #08fcfc6e;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.fido2-section-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, #08fcfc12 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fido2-section-header {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.fido2-badge {
    display: inline-block;
    background: linear-gradient(45deg, #08fcfc, #0053ff);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px #08fcfc6e;
}

.fido2-section-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 6px 0 3px 0;
}

.fido2-section-header p {
    font-size: 12px;
    color: #b3b3b3;
    margin: 0;
}

.traditional-login-header {
    text-align: center;
    margin: 16px 0 12px 0;
    padding-top: 12px;
    border-top: 1px solid #08fcfc3d;
}

.traditional-login-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.traditional-login-header p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

#passkey-indicator {
    display: inline-block;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fido2-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #08fcfc, #0053ff);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 12px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px #08fcfc6e;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: none;
    letter-spacing: 0px;
}

.fido2-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.fido2-login-btn:hover::before {
    left: 100%;
}

.fido2-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #08fcfc8a;
}

.fido2-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px #08fcfc3d;
}

.fido2-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px #08fcfc3d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fido2-container {
        margin: 10px 0;
    }

    .fido2-section-card {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .fido2-section-header {
        margin-bottom: 10px;
    }
    
    .fido2-section-header h3 {
        font-size: 16px;
    }
    
    .fido2-section-header p {
        font-size: 11px;
    }
    
    .fido2-login-btn {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .fido2-icon {
        font-size: 18px;
    }
    
    .traditional-login-header {
        margin: 12px 0 10px 0;
        padding-top: 10px;
    }
    
    .traditional-login-header h3 {
        font-size: 14px;
    }
    
    .traditional-login-header p {
        font-size: 11px;
    }
    
    .fido2-divider {
        margin: 14px 0 12px 0;
    }
    
    #passkey-indicator {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 4px;
    }
}

.fido2-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.fido2-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0 14px 0;
    color: #888;
    position: relative;
}

.fido2-divider::before,
.fido2-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #08fcfc3d;
}

.fido2-divider span {
    padding: 0 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: transparent;
    position: relative;
    z-index: 1;
    color: #666;
}

/* Cihaz Yönetim Sayfası */
.fido2-device-card {
    background: rgba(30, 30, 30, 0.6);
    border: 2px solid #08fcfc3d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.fido2-device-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.fido2-device-card:hover {
    border-color: #08fcfc8a;
    box-shadow: 0 6px 20px #08fcfc3d;
    transform: translateY(-2px);
}

.fido2-device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.fido2-device-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.fido2-device-type-icon {
    margin-right: 10px;
    font-size: 24px;
}

.fido2-device-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #b3b3b3;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.fido2-device-info-item {
    display: flex;
    align-items: center;
}

.fido2-device-info-item i {
    margin-right: 8px;
    color: #888;
    width: 16px;
}

.fido2-device-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.fido2-btn-remove {
    padding: 8px 16px;
    background: linear-gradient(45deg, #08fcfc, #0053ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px #08fcfc3d;
}

.fido2-btn-remove:hover {
    background: linear-gradient(45deg, #c7070e, #6f1216);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #08fcfc6e;
}

.fido2-btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #08fcfc, #0053ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px #08fcfc6e;
    margin: 20px 0;
    width: 100%;
}

.fido2-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #08fcfc8a;
}

.fido2-btn-add i {
    font-size: 18px;
}

.fido2-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    background: rgba(30, 30, 30, 0.3);
    border: 2px dashed #08fcfc3d;
    border-radius: 12px;
    margin: 20px 0;
}

.fido2-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.fido2-empty-state h3 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}

.fido2-empty-state p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    color: #b3b3b3;
}

/* Loading ve Mesaj Durumları */
.fido2-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: fido2-spin 1s ease-in-out infinite;
}

@keyframes fido2-spin {
    to { transform: rotate(360deg); }
}

.fido2-alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fido2-alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #4caf50;
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.fido2-alert-error {
    background: #08fcfc3d;
    color: #ff5252;
    border: 2px solid #08fcfc6e;
}

.fido2-alert-info {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 2px solid rgba(33, 150, 243, 0.4);
}

/* Modal */
.fido2-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.fido2-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fido2-modal-content {
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid #08fcfc3d;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fido2-modal-header {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.fido2-modal-body {
    margin-bottom: 20px;
    color: #b3b3b3;
}

.fido2-modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.fido2-modal-body .form-group {
    margin-bottom: 0;
}

.fido2-modal-body label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.fido2-modal-body .form-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #08fcfc3d;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fido2-modal-body .form-input:focus {
    outline: none;
    border-color: #08fcfc8c;
    background: rgba(255, 255, 255, 0.08);
}

.fido2-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.fido2-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fido2-modal-btn-primary {
    background: linear-gradient(45deg, #08fcfc, #0053ff);
    color: white;
    box-shadow: 0 2px 8px #08fcfc3d;
}

.fido2-modal-btn-primary:hover {
    background: linear-gradient(45deg, #c7070e, #6f1216);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #08fcfc6e;
}

.fido2-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.fido2-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .fido2-device-card {
        padding: 16px;
        margin-bottom: 12px;
    }

    .fido2-device-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .fido2-device-name {
        font-size: 16px;
    }
    
    .fido2-device-type-icon {
        font-size: 20px;
    }

    .fido2-device-actions {
        width: 100%;
    }

    .fido2-btn-remove {
        width: 100%;
        justify-content: center;
    }
    
    .fido2-btn-add {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .fido2-empty-state {
        padding: 40px 15px;
    }
    
    .fido2-empty-state-icon {
        font-size: 48px;
    }
    
    .fido2-empty-state h3 {
        font-size: 20px;
    }
    
    .fido2-empty-state p {
        font-size: 14px;
    }

    .fido2-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .fido2-modal-header {
        font-size: 20px;
    }
}

/* Platform Authenticator Badge */
.fido2-platform-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
    border: 1px solid rgba(33, 150, 243, 0.4);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fido2-cross-platform-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(156, 39, 176, 0.2);
    color: #ba68c8;
    border: 1px solid rgba(156, 39, 176, 0.4);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* FIDO2 Verify 2FA Page - Login sayfası stillerini kullanır */
.fido2-verify-status { 
    padding: 20px; 
    margin: 20px 0; 
    border-radius: 12px; 
    background: rgba(30, 30, 30, 0.4);
    border: 2px solid #08fcfc3d;
    backdrop-filter: blur(10px);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fido2-verify-actions { 
    display: flex; 
    flex-direction: column;
    gap: 12px; 
    margin-top: 20px; 
}

.fido2-verify-actions .submit-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Mobile Responsive for Verify Page */
@media (max-width: 768px) {
    .fido2-verify-status {
        padding: 16px;
        min-height: 100px;
    }
    
    .fido2-verify-actions .submit-btn {
        padding: 14px 18px;
        font-size: 14px;
    }
}
