﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: -80px;
    left: -80px;
    animation-delay: 0s;
}

.shape-2 {
    width: 180px;
    height: 180px;
    bottom: -40px;
    right: -40px;
    animation-delay: 5s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.login-container {
    width: 100%;
    max-width: 850px;
    position: relative;
    z-index: 1;
}

.login-card {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-height: 480px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-panel {
    background: linear-gradient(135deg, #5B7FE8 0%, #4A6FD7 100%);
    color: white;
    padding: 45px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.left-content {
    position: relative;
    z-index: 1;
}

.left-panel h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 35px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.features {
    list-style: none;
}

.features li {
    font-size: 15px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.features li:nth-child(1) { animation-delay: 0.2s; }
.features li:nth-child(2) { animation-delay: 0.3s; }
.features li:nth-child(3) { animation-delay: 0.4s; }
.features li:nth-child(4) { animation-delay: 0.5s; }
.features li:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.features li i {
    font-size: 16px;
}

.right-panel {
    flex: 1;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.logo-icon {
    font-size: 24px;
    color: #5B7FE8;
}

.system-name {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    letter-spacing: 1.5px;
}

.right-panel h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
}

.welcome-text {
    color: #666;
    margin-bottom: 28px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #999;
    font-size: 15px;
    transition: color 0.3s;
}

.input-wrapper.focused .input-icon {
    color: #5B7FE8;
}

.form-group input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #5B7FE8;
    background: white;
    box-shadow: 0 0 0 3px rgba(91, 127, 232, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 14px;
    color: #999;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #5B7FE8;
}

.login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #5B7FE8 0%, #4A6FD7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(91, 127, 232, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 127, 232, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn i {
    font-size: 13px;
}

.forgot-link {
    text-align: center;
    margin-top: 18px;
    color: #5B7FE8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.forgot-link:hover {
    color: #4A6FD7;
    text-decoration: underline;
}

.footer-text {
    margin-top: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.footer-text strong {
    color: #5B7FE8;
    font-weight: 600;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .login-card {
        flex-direction: column;
        border-radius: 16px;
        min-height: auto;
    }
    
    .left-panel {
        padding: 35px 25px;
    }
    
    .left-panel h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .features li {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .right-panel {
        padding: 35px 25px;
    }
    
    .right-panel h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .left-panel {
        padding: 25px 20px;
    }
    
    .right-panel {
        padding: 25px 20px;
    }
    
    .left-panel h1 {
        font-size: 22px;
    }
    
    .features li {
        font-size: 13px;
    }
}

/*  Login error / lockout message â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.login-error {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 0;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 16px;
    animation: shakeError .35s ease;
}

@keyframes shakeError {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

.login-error i {
    margin-top: 1px;
    flex-shrink: 0;
}
