/* MailGuard Login Styles */

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #2d3748;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: #718096;
    font-size: 16px;
}

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

.form-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Slide to Login */
.slide-to-login {
    position: relative;
    height: 60px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    margin: 30px 0 20px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.slide-to-login:hover {
    border-color: #667eea;
}

.slide-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
}

.slide-thumb {
    position: absolute;
    top: 2px;
    left: 4px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slide-thumb:active {
    cursor: grabbing;
}

.slide-thumb .slide-icon {
    transition: all 0.3s ease;
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #718096;
    font-weight: 600;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.slide-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 28px;
    width: 0%;
    transition: width 0.3s ease;
    opacity: 0.1;
}

/* Slide states */
.slide-to-login.dragging .slide-thumb {
    transition: none;
}

.slide-to-login.completed {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-color: #48bb78;
}

.slide-to-login.completed .slide-text {
    color: white;
}

.slide-to-login.completed .slide-progress {
    width: 100%;
    opacity: 0.2;
}

.slide-to-login.completed .slide-thumb {
    background: white;
    color: #48bb78;
}

/* Error state */
.slide-to-login.error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border-color: #e53e3e;
}

.slide-to-login.error .slide-text {
    color: #c53030;
    font-weight: 700;
    font-size: 14px;
}

.slide-to-login.error .slide-progress {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    width: 100%;
    opacity: 0.3;
}

.slide-to-login.error .slide-thumb {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

/* Hide default submit button */
.visually-hidden-submit {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .login-container {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .slide-to-login {
        height: 50px;
    }
    
    .slide-thumb {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}