/* Login Credentials Page Styles */

.totp-credentials-page {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 20px;
}

.cred-header {
    text-align: center;
    background: #fe6401;
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
    margin-bottom: 20px;
}

.cred-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.cred-header p {
    margin: 0;
    opacity: 0.9;
}

.cred-login {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cred-login h3 {
    margin-bottom: 20px;
    color: #333;
}

.cred-login input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.cred-login input:focus {
    outline: none;
    border-color: white;
}

.cred-message {
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

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

.cred-info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #2196F3;
}

.cred-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.cred-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.cred-messages {
    padding: 0 20px;
}

.btn-subscribe-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: #fe6401;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-subscribe-link:hover {
    background: #e55a00;
    text-decoration: none;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #fe6401;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 20px 0 10px 0;
    color: #333;
}

.empty-state p {
    color: #666;
    margin: 10px 0;
}

.empty-state a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.empty-state a:hover {
    text-decoration: underline;
}

.credentials-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cred-welcome {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cred-welcome h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.cred-welcome p {
    margin: 0;
    color: #666;
}

.credential-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.credential-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: white;
}

.cred-card-header {
    background: #fe6401;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cred-card-header h4 {
    margin: 0;
    font-size: 20px;
}

.expiry-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.cred-card-body {
    padding: 20px;
}

.cred-field {
    margin-bottom: 20px;
}

.cred-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.cred-value {
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cred-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #1f2937;
    word-break: break-all;
}

.copy-btn, .show-password-btn {
    padding: 6px 12px;
    background: #fe6401;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover, .show-password-btn:hover {
    background: #fe6401;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.show-password-btn {
    background: #6b7280;
}

.show-password-btn:hover {
    background: #4b5563;
}

.cred-instructions {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px;
    border-radius: 6px;
    color: #92400e;
    line-height: 1.6;
}

.cred-expiry-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.cred-expiry-info small {
    color: #6b7280;
}

.cred-footer {
    margin-top: 30px;
    padding: 20px;
    background: #f3f4f6;
    border-radius: 8px;
    text-align: center;
}

.cred-footer p {
    margin: 8px 0;
    color: #4b5563;
}

.cred-footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.cred-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .totp-credentials-page {
        padding: 10px;
    }
    
    .cred-header {
        padding: 20px;
    }
    
    .cred-header h2 {
        font-size: 24px;
    }
    
    .cred-value {
        flex-direction: column;
        gap: 8px;
    }
    
    .cred-text {
        width: 100%;
    }
    
    .copy-btn, .show-password-btn {
        width: 100%;
    }
    
    .cred-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Dashboard Link */
.cred-dashboard-link {
    padding: 15px 20px;
    background: #a55014;
    border-bottom: 1px solid #8a4210;
    text-align: center;
}

.cred-dashboard-link .dashboard-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}

.cred-dashboard-link .dashboard-btn:hover {
    background: #ffffff;
    text-decoration: none;
    color: #a55014 !important;
}

/* Section titles */
.section-title {
    margin: 30px 0 15px 0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 18px;
}

.section-title.active-section {
    background: #d1fae5;
    color: #047857;
}

.section-title.expired-section {
    background: #fef2f2;
    color: #dc2626;
}

/* Expired credential card */
.credential-card.expired-card {
    border: 2px solid #fca5a5;
    background: #fef2f2;
    position: relative;
}

.credential-card.expired-card .cred-card-header {
    background: #dc2626;
}

.credential-card.expired-card .cred-card-body {
    position: relative;
}

.expired-overlay {
    background: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0 0 10px 10px;
}

.expired-message {
    text-align: center;
    padding: 20px;
}

.expired-message p {
    margin: 8px 0;
    color: #991b1b;
}

.expired-message .renew-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #dc2626;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
}

.expired-message .renew-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.cred-field.blurred {
    filter: blur(3px);
    opacity: 0.5;
    pointer-events: none;
}

.btn-expired-action {
    padding: 6px 12px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-expired-action:hover {
    background: #b91c1c;
}

/* Get OTP Code button styles - REDESIGNED for more visibility */
.cred-otp-button-container {
    margin: 20px 0 15px 0;
    padding: 0;
}

.btn-get-otp-prominent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #040a30 0%, #0a1a4a 50%, #1a237e 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(4, 10, 48, 0.4), 0 0 0 3px rgba(165, 80, 20, 0.3);
    border: 2px solid #a55014;
    position: relative;
    overflow: hidden;
}

.btn-get-otp-prominent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-get-otp-prominent:hover::before {
    left: 100%;
}

.btn-get-otp-prominent:hover {
    background: linear-gradient(135deg, #0a1a4a 0%, #1a237e 50%, #283593 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(4, 10, 48, 0.5), 0 0 0 3px rgba(165, 80, 20, 0.5);
    color: #ffffff !important;
    text-decoration: none;
}

.otp-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #a55014;
    border-radius: 10px;
    flex-shrink: 0;
}

.otp-btn-icon svg {
    stroke: #ffffff;
    width: 24px;
    height: 24px;
}

.otp-btn-text {
    flex: 1;
    text-align: left;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.otp-btn-text strong {
    font-size: 18px;
    color: #fe6401;
    display: block;
}

.otp-btn-text small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.otp-btn-arrow {
    font-size: 24px;
    color: #fe6401;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-get-otp-prominent:hover .otp-btn-arrow {
    transform: translateX(5px);
}

/* Mobile responsive for OTP button */
@media (max-width: 480px) {
    .btn-get-otp-prominent {
        padding: 15px;
    }
    
    .otp-btn-icon {
        width: 40px;
        height: 40px;
    }
    
    .otp-btn-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .otp-btn-text strong {
        font-size: 16px;
    }
    
    .otp-btn-text small {
        font-size: 12px;
    }
}

/* Old styles kept for backwards compatibility */
.cred-action-buttons {
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.btn-get-otp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #040a30 0%, #1a237e 100%);
    color: #fe6401 !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(4, 10, 48, 0.4);
}

.btn-get-otp:hover {
    background: linear-gradient(135deg, #0a1245 0%, #283593 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(4, 10, 48, 0.5);
    color: #ff7c1a !important;
    text-decoration: none;
}

.btn-get-otp svg {
    stroke: #fe6401;
    width: 20px;
    height: 20px;
}

.btn-get-otp:hover svg {
    stroke: #ff7c1a;
}

/* View Login Details button styles (for OTP page) */
.btn-view-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-view-login:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    color: white !important;
    text-decoration: none;
}
