/* login.css - Login page styles with blue/green theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1e7a54 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15),
                0 10px 30px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.logo {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo h1 {
    color: #0f6b45;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo p {
    color: #2563eb;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.2rem;
    z-index: 1;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-group input::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.slide-container {
    margin: 30px 0;
}

.slide-container label {
    display: block;
    margin-bottom: 12px;
    color: #374151;
    font-weight: 500;
    text-align: center;
}

.slide-track {
    position: relative;
    width: 100%;
    height: 50px;
    background: #f3f4f6;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.slide-track:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.slide-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 40%, #1e7a54 100%);
    border-radius: 25px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slide-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.slide-knob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    left: 4px;
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.slide-knob:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2),
                0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-knob:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(0.95);
}

.slide-knob.dragging {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3),
                0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide-knob.completed {
    background: linear-gradient(135deg, #0f6b45, #1e7a54);
    color: white;
    transform: translateY(-50%) scale(1.1);
    animation: completeAnimation 0.5s ease;
}

@keyframes completeAnimation {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
    100% { transform: translateY(-50%) scale(1.1); }
}

.slide-arrow {
    font-size: 18px;
    font-weight: bold;
    color: #6b7280;
    transition: color 0.3s ease;
}

.slide-knob.completed .slide-arrow {
    color: white;
}

.slide-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.3s ease;
    font-weight: 500;
}

.slide-text.completing {
    opacity: 0;
    transform: scale(0.9);
}

.slide-text.completed {
    color: #0f6b45;
    font-weight: 600;
}

.error-message {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.95));
    border: 1px solid rgba(254, 202, 202, 0.8);
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInFade 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.error-message::before {
    content: '⚠️';
    font-size: 1.2rem;
}

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

.success-message {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.95), rgba(220, 252, 231, 0.95));
    border: 1px solid rgba(134, 239, 172, 0.8);
    color: #0f6b45;
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInFade 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(15, 107, 69, 0.1);
}

.success-message::before {
    content: '✅';
    font-size: 1.2rem;
}

.slide-track.completed {
    border-color: #0f6b45;
}

.slide-track.completed .slide-fill {
    width: 100% !important;
}

@media (max-width: 480px) {
    .login-card {
        margin: 20px;
        padding: 30px 25px;
    }

    .logo h1 {
        font-size: 2rem;
    }
}