/* ==================== LOGIN PAGE OFFLINE - NO CDN ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    background: linear-gradient(135deg, #1b2737 0%, #2d3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.login-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2684ff 0%, #1b2737 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(38, 132, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
    font-size: 36px;
    color: #ffffff;
}

/* Check icon using emoji */
.logo-circle::before {
    content: "✓";
    font-weight: bold;
    font-size: 42px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #2684ff 0%, #1b2737 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.login-header .subtitle {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-error::before {
    content: "⚠️";
    font-size: 18px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group::before {
    position: absolute;
    left: 16px;
    color: #999;
    font-size: 18px;
    transition: color 0.3s;
    z-index: 1;
}

.input-group.user-input::before {
    content: "👤";
}

.input-group.pass-input::before {
    content: "🔒";
}

.input-group input:focus ~ ::before {
    color: #667eea;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    transition: all 0.3s;
    background: #fafafa;
}

.input-group input:focus {
    outline: none;
    border-color: #2684ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(38, 132, 255, 0.1);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    padding: 4px;
    z-index: 1;
}

.toggle-password::before {
    content: "👁️";
}

.toggle-password.active::before {
    content: "🙈";
}

.toggle-password:hover {
    transform: scale(1.1);
}

.btn-login {
    margin-top: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2684ff 0%, #1565c0 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(38, 132, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.btn-login::after {
    content: "→";
    font-size: 18px;
    font-weight: bold;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 132, 255, 0.6);
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    font-size: 13px;
    color: #999;
}

/* Background Shapes */
.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 36px 24px;
        border-radius: 20px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .logo-circle {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}
