:root {
    --white-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --green-clear: #16a34a;
    --red-alert: #e11d48;
    --border-light: #e2e8f0;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --login-bg: radial-gradient(circle at 30% 50%, #0f172a 0%, #050102 100%);
    --card-bg: rgba(255, 255, 255, 0.97);
    --input-bg: #f8fafc;
    --input-focus-bg: #ffffff;
    --panel-bg: linear-gradient(160deg, #0a0f1c 0%, #111827 40%, #0d1520 100%);
    --info-card-bg: rgba(255, 255, 255, 0.02);
    --info-card-border: rgba(255, 255, 255, 0.04);
    --info-card-hover-bg: rgba(22, 163, 74, 0.06);
    --status-bg: rgba(255, 255, 255, 0.02);
    --status-border: rgba(255, 255, 255, 0.04);
}

body.dark-mode {
    --login-bg: radial-gradient(circle at 30% 50%, #1a1a2e 0%, #0a0a14 100%);
    --card-bg: rgba(30, 30, 50, 0.97);
    --text-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --border-light: #334155;
    --input-bg: #1e293b;
    --input-focus-bg: #263348;
    --panel-bg: linear-gradient(160deg, #0f0f1e 0%, #1a1a2e 40%, #12121f 100%);
    --info-card-bg: rgba(255, 255, 255, 0.03);
    --info-card-border: rgba(255, 255, 255, 0.06);
    --info-card-hover-bg: rgba(22, 163, 74, 0.1);
    --status-bg: rgba(255, 255, 255, 0.03);
    --status-border: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--login-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    transition: background 0.5s ease;
}

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatUp linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 3px; height: 3px; background: rgba(225, 29, 72, 0.3); }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; width: 5px; height: 5px; background: rgba(22, 163, 74, 0.5); }
.particle:nth-child(3) { left: 40%; animation-duration: 10s; animation-delay: 4s; width: 2px; height: 2px; background: rgba(255, 255, 255, 0.2); }
.particle:nth-child(4) { left: 55%; animation-duration: 18s; animation-delay: 1s; width: 4px; height: 4px; background: rgba(225, 29, 72, 0.4); }
.particle:nth-child(5) { left: 70%; animation-duration: 14s; animation-delay: 3s; width: 3px; height: 3px; background: rgba(22, 163, 74, 0.3); }
.particle:nth-child(6) { left: 85%; animation-duration: 11s; animation-delay: 5s; width: 5px; height: 5px; background: rgba(255, 255, 255, 0.15); }
.particle:nth-child(7) { left: 15%; animation-duration: 16s; animation-delay: 6s; width: 2px; height: 2px; background: rgba(225, 29, 72, 0.5); }
.particle:nth-child(8) { left: 50%; animation-duration: 13s; animation-delay: 7s; width: 4px; height: 4px; background: rgba(22, 163, 74, 0.4); }
.particle:nth-child(9) { left: 75%; animation-duration: 9s; animation-delay: 8s; width: 3px; height: 3px; background: rgba(255, 255, 255, 0.25); }
.particle:nth-child(10) { left: 90%; animation-duration: 17s; animation-delay: 0s; width: 5px; height: 5px; background: rgba(225, 29, 72, 0.35); }

@keyframes floatUp {
    0% {
        bottom: -10%;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(40px) scale(0.5);
    }
}

.theme-float-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-float-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.theme-float-icon {
    font-size: 20px;
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

body.dark-mode .sun-icon {
    opacity: 0;
}

body.dark-mode .moon-icon {
    opacity: 1;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 1050px;
    width: 92%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: cardEntry 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cardEntry {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: background 0.5s ease;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.login-logo-link {
    text-decoration: none;
    display: block;
}

.login-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.login-shiny-text {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
    background: linear-gradient(120deg, var(--text-dark) 40%, #16a34a 50%, var(--text-dark) 60%);
    background-size: 300% 100%;
    background-position: -100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loginShine 6s linear infinite;
    margin-bottom: -6px;
}

@keyframes loginShine {
    0% {
        background-position: -100% 0;
    }
    40% {
        background-position: 200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.login-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.8px;
    color: var(--text-dark);
    text-transform: uppercase;
    padding-left: 55px;
    position: relative;
}

.login-subtitle::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: var(--text-dark);
    opacity: 0.5;
    border-radius: 1px;
}

.login-welcome {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label i {
    color: var(--green-clear);
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 42px 13px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--input-bg);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--green-clear);
    background: var(--input-focus-bg);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.toggle-password:hover {
    color: var(--text-dark);
}

.login-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.78rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background: var(--green-clear);
    border-color: var(--green-clear);
    position: relative;
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    background: var(--green-clear);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.login-btn:hover {
    background: #15803d;
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.5);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-btn i {
    transition: transform 0.35s ease;
}

.login-btn:hover i {
    transform: translateX(5px);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 10px;
    color: var(--red-alert);
    font-size: 0.85rem;
    font-weight: 600;
    animation: shakeError 0.5s ease;
}

.error-message.hidden {
    display: none;
}

@keyframes shakeError {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.back-home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home-link:hover {
    color: var(--text-dark);
    gap: 12px;
}

.login-info-panel {
    flex: 0.95;
    background: var(--panel-bg);
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.decorative-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
}

.ring-1 {
    width: 250px;
    height: 250px;
    top: -80px;
    right: -80px;
    border-color: rgba(22, 163, 74, 0.15);
    animation: ringPulse 4s infinite ease-in-out;
}

.ring-2 {
    width: 180px;
    height: 180px;
    bottom: -50px;
    left: -50px;
    border-color: rgba(225, 29, 72, 0.1);
    animation: ringPulse 4s infinite ease-in-out 1s;
}

.ring-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 20px;
    border-color: rgba(255, 255, 255, 0.04);
    animation: ringPulse 4s infinite ease-in-out 2s;
}

@keyframes ringPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.decorative-line {
    position: absolute;
    pointer-events: none;
}

.line-1 {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.5), transparent);
    top: 20%;
    right: 15%;
    transform: rotate(-30deg);
    animation: lineShine 3s infinite ease-in-out;
}

.line-2 {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.3), transparent);
    bottom: 25%;
    left: 20%;
    transform: rotate(45deg);
    animation: lineShine 3s infinite ease-in-out 1.5s;
}

@keyframes lineShine {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.info-icon-wrapper {
    position: relative;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.3) 0%, transparent 70%);
    animation: glowPulse 2.5s infinite ease-in-out;
}

@keyframes glowPulse {
    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.info-icon-large {
    font-size: 2rem;
    color: var(--green-clear);
    position: relative;
    z-index: 1;
    animation: floatIcon 3s infinite ease-in-out;
}

@keyframes floatIcon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.info-content h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.info-content p {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 260px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--info-card-bg);
    border: 1px solid var(--info-card-border);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.info-card:hover {
    background: var(--info-card-hover-bg);
    border-color: rgba(22, 163, 74, 0.2);
    transform: translateX(6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.info-card:hover .card-icon-wrap {
    background: rgba(22, 163, 74, 0.2);
    border-color: rgba(22, 163, 74, 0.4);
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.2);
}

.card-icon-wrap i {
    color: var(--green-clear);
    font-size: 0.95rem;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    flex: 1;
}

.card-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.card-desc {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

.card-arrow {
    color: #475569;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.info-card:hover .card-arrow {
    color: var(--green-clear);
    transform: translateX(3px);
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--status-bg);
    border: 1px solid var(--status-border);
    border-radius: 50px;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-clear);
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.6);
    animation: statusBlink 2s infinite ease-in-out;
}

@keyframes statusBlink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 420px;
    }

    .login-info-panel {
        display: none;
    }

    .login-card {
        padding: 35px 25px;
        border-radius: 24px;
    }

    .login-shiny-text {
        font-size: 2.8rem;
    }

    .login-logo {
        width: 75px;
        height: 75px;
    }

    .login-subtitle {
        padding-left: 48px;
    }

    .theme-float-btn {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-shiny-text {
        font-size: 2.4rem;
    }

    .login-logo {
        width: 65px;
        height: 65px;
    }

    .theme-float-btn {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .theme-float-icon {
        font-size: 16px;
    }
}