/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #008b6c;
    position: relative;
    overflow: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(251, 192, 45, 0.12);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 25s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 120px;
    height: 120px;
    left: 70%;
    animation-duration: 30s;
    animation-delay: 5s;
}

.particle:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 40%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    left: 85%;
    animation-duration: 28s;
    animation-delay: 7s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 20%;
    animation-duration: 22s;
    animation-delay: 4s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== MAIN LOGIN WRAPPER ===== */
.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    width: 950px;
    max-width: 95vw;
    min-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(251, 192, 45, 0.2);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== LEFT PANEL – BRANDING ===== */
.login-brand {
    flex: 1;
    background: #006b52;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(251, 192, 45, 0.08);
    top: -150px;
    left: -100px;
    animation: pulse-orb 6s ease-in-out infinite;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(251, 192, 45, 0.06);
    bottom: -100px;
    right: -80px;
    animation: pulse-orb 8s ease-in-out infinite reverse;
}

@keyframes pulse-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.08;
    }

    50% {
        transform: translate(-20px, 20px) scale(1.1);
        opacity: 0.12;
    }
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    object-fit: cover;
    margin-bottom: 28px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(251, 192, 45, 0.3);
    animation: logo-float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    border: 3px solid #FBC02D;
}

.brand-logo:hover {
    transform: translateY(-8px) scale(1.05);
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto;
    font-weight: 300;
}

/* Decorative circles */
.brand-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border: 2px solid rgba(251, 192, 45, 0.2);
    border-radius: 50%;
}

.deco-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: -75px;
    animation: rotate-circle 20s linear infinite;
}

.deco-2 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: -50px;
    animation: rotate-circle 15s linear infinite reverse;
}

.deco-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-scale 8s ease-in-out infinite;
}

@keyframes rotate-circle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

/* ===== RIGHT PANEL – FORM ===== */
.login-form-panel {
    flex: 1.15;
    background: #ffffff;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
        border-radius: 16px;
    }

    .login-brand {
        padding: 40px 30px;
    }

    .brand-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .login-form-panel {
        padding: 40px 35px;
    }
}

@media (max-width: 640px) {
    .login-wrapper {
        max-width: 92vw;
        border-radius: 14px;
    }

    .login-brand {
        padding: 35px 25px;
    }

    .brand-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }

    .brand-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    .login-form-panel {
        padding: 35px 25px;
    }

    .deco-1,
    .deco-2,
    .deco-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        max-width: 95vw;
    }

    .login-brand {
        padding: 30px 20px;
    }

    .brand-logo {
        width: 65px;
        height: 65px;
    }

    .brand-title {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .login-form-panel {
        padding: 30px 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .particles-background,
    .brand-decoration,
    .login-brand::before,
    .login-brand::after {
        display: none;
    }
}