/* Modern Lost Account Interface Styles */
.lost-account-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lost-account-header {
    text-align: center;
    margin-bottom: 40px;
}

.lost-account-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.lost-account-icon:hover {
    transform: scale(1.1);
}

.lost-account-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.lost-account-icon.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.lost-account-icon.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.lost-account-icon.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.lost-account-form {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.lost-account-form:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    color: var(--anchor);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 8px;
    font-size: 1.1em;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--primary);
    color: var(--font);
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--anchor);
    box-shadow: 0 0 0 3px rgba(var(--anchor-rgb), 0.1);
    transform: translateY(-2px);
}

.form-input:invalid {
    border-color: #dc3545;
}

.form-input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.btn-modern {
    background: linear-gradient(45deg, var(--anchor), #d4af37);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #d4af37, var(--anchor));
}

.btn-modern i {
    margin-right: 10px;
}

.alert {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-width: 2px;
    border-style: solid;
}

.alert.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #155724;
}

.alert.error {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #721c24;
}

.alert.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #856404;
}

.alert.info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* Popup-specific styles */
.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    animation: backdropFadeIn 0.3s ease-out;
}

.alert.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-radius: 10px;
    animation: popupFadeIn 0.3s ease-out;
}

.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--border);
    color: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
}

.step.active .step-number {
    background: var(--anchor);
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.recovery-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary);
}

.recovery-option:hover {
    border-color: var(--anchor);
    background: rgba(var(--anchor-rgb), 0.05);
}

.recovery-option.selected {
    border-color: var(--anchor);
    background: rgba(var(--anchor-rgb), 0.1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-item {
    text-align: center;
    padding: 15px;
}

.feature-item i {
    font-size: 1.5em;
    margin-bottom: 8px;
    display: block;
}

.loading-spinner {
    border: 3px solid rgba(0,0,0,0.1);
    border-left: 3px solid var(--anchor);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Popup animations */
@keyframes popupFadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lost-account-container {
        padding: 15px;
    }
    
    .lost-account-form {
        padding: 20px;
    }
    
    .lost-account-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-modern {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    
    /* Mobile popup adjustments */
    .alert.popup {
        min-width: 300px;
        max-width: 90vw;
        margin: 0 20px;
    }
    
    .popup-backdrop {
        background: rgba(0,0,0,0.6);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lost-account-form {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}