.login-page {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 50%,
        var(--tertiary) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Animated water background */
.login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(0, 131, 143, 0.2) 0%,
            transparent 60%
        );
    pointer-events: none;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    min-height: 600px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-brand {
    flex: 1;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-lighter) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(
            circle at 30% 70%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 70% 30%,
            rgba(0, 131, 143, 0.3) 0%,
            transparent 40%
        );
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(2deg);
    }
}

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

.brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: var(--body-size);
    opacity: 0.85;
    line-height: 1.6;
    max-width: 320px;
}

.brand-features {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: left;
    max-width: 280px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--label-size);
    opacity: 0.9;
}

.brand-feature svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl);
    max-width: 480px;
}

.login-header {
    margin-bottom: var(--space-xl);
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.login-header p {
    color: var(--text-secondary);
    font-size: var(--label-size);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label a {
    font-size: var(--small-size);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.form-label a:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.input-wrapper .form-input {
    padding-left: 2.5rem;
}

.input-wrapper .toggle-password {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-wrapper .toggle-password:hover {
    color: var(--text-secondary);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-xs);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--label-size);
    color: var(--text-secondary);
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-login {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
    font-size: var(--body-size);
    margin-top: var(--space-sm);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: var(--small-size);
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--neutral-dark);
}

.login-footer {
    margin-top: var(--space-xl);
    text-align: center;
    font-size: var(--small-size);
    color: var(--text-muted);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Water drop animation */
.water-drop {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: drop 3s ease-in-out infinite;
}

.water-drop:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.water-drop:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.water-drop:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 2s;
}

@keyframes drop {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        margin: var(--space-md);
        min-height: auto;
    }

    .login-brand {
        padding: var(--space-xl);
        min-height: 200px;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .brand-features {
        display: none;
    }

    .login-form-section {
        padding: var(--space-xl);
    }
}
