:root {
    --primary-color: #2148C0;
    --secondary-color: #FF5722;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* logo top left */
.top-logo {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 9999;
}

.top-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.top-logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    max-width: 1000px;
    width: 100%;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    z-index: 1;
}

.logo {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.login-left h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    z-index: 1;
}

.login-left p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    z-index: 1;
}

.features-list {
    text-align: left;
    margin-top: 20px;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.feature-icon {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-right {
    flex: 1;
    padding: 60px 50px 320px;
    max-height: 90vh;
    overflow-y: scroll;
}

.login-right h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.login-right .subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    background: white;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 72, 192, 0.1);
}

.form-group input.input-valid {
    border-color: #28a745 !important;
}

.form-group input.input-invalid {
    border-color: #dc3545 !important;
}

.field-error {
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 5px;
    display: none;
}

.field-error.show {
    display: block;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: #999;
    user-select: none;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.remember-me label {
    color: #666;
    cursor: pointer;
    font-weight: normal;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(33, 72, 192, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #999;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

.register-link {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-top: 25px;
}

.register-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.register-link a:hover {
    color: var(--secondary-color);
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.back-home a:hover {
    color: var(--secondary-color);
    transform: translateX(-3px);
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    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-left: 4px solid #c33;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .features-list {
        display: none;
    }

    .login-left h2 {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.8rem;
    }
}

.login-right::-webkit-scrollbar {
    width: 8px;
}

.login-right::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.login-right::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.login-right::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}