* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    position: relative;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-header p {
    font-size: 0.9rem;
    color: #aaa;
}

.input-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 0.8rem;
    background: #252525;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.password-input.error {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
    background-color: rgba(244, 67, 54, 0.05);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    border-radius: 3px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.api-status {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-ready { color: #4a9eff; }
.status-success { color: #4caf50; }
.status-error { color: #f44336; }
.status-verifying { color: #ff9800; }

.hint-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.3rem;
}

.error-message {
    font-size: 0.8rem;
    color: #ff5252;
    margin-top: 0.5rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
    border-radius: 4px;
}

.error-message.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.slider-container {
    margin: 2rem 0 1.5rem;
}

.slider-track {
    width: 100%;
    height: 40px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.slider-thumb {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #555;
    transition: all 0.3s ease;
    z-index: 2;
}

.slider-thumb:active {
    cursor: grabbing;
    background: #444;
    transform: scale(1.05);
}

.slider-thumb::after {
    content: '→';
    color: #fff;
    font-size: 1.2rem;
}

.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d5f9c, #4a9eff);
    border-radius: 20px;
    width: 0%;
    transition: width 0.3s ease;
}

.slider-text {
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.8rem;
    height: 1.2rem;
}

.verify-button {
    width: 100%;
    padding: 0.9rem;
    background: #2d5f9c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.verify-button.active {
    background: #4a9eff;
    cursor: pointer;
    opacity: 1;
}

.verify-button.active:hover {
    background: #3a8eef;
    transform: translateY(-1px);
}

.verify-button.verifying {
    background: #ff9800;
    cursor: not-allowed;
}

.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #1a1a1a;
    border: 1px solid #4caf50;
    border-radius: 12px;
    padding: 2rem;
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.alert-icon {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.alert-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.alert-message {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.alert-button {
    padding: 0.7rem 2rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-button:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

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

@media (max-width: 480px) {
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .custom-alert {
        padding: 1.5rem;
    }
}
