﻿html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.login-form {
    height: 100%;
}

.login-page {
    display: flex;
    height: 100%;
    width: 100%;
}

.login-branding {
    position: relative;
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-main-blue), var(--color-dark-blue));
    overflow: hidden;
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 420px;
}

.branding-logo {
    width: 220px;
    max-width: 70%;
    margin-bottom: 24px;
}

.branding-title {
    font-family: var(--font-title);
    font-weight: var(--font-weight-title);
    font-size: 2rem;
    color: var(--color-white);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.branding-tagline {
    font-family: var(--font-subtitle);
    font-weight: var(--font-weight-subtitle);
    font-size: 0.95rem;
    color: var(--color-soft-green);
    line-height: 1.6;
}

.branding-shape {
    position: absolute;
    border-radius: 50%;
}

.branding-shape-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -140px;
    background: rgba(101, 160, 155, 0.15);
}

.branding-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -80px;
    background: rgba(255, 255, 255, 0.06);
}

.login-panel {
    flex: 1 1 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    padding: 24px;
}

.login-form-card {
    width: 100%;
    max-width: 380px;
}

.login-title {
    font-family: var(--font-title);
    font-weight: var(--font-weight-title);
    font-size: 1.5rem;
    color: var(--color-main-blue);
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--color-gray-text);
    margin-bottom: 28px;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-gray-text);
    cursor: pointer;
    margin-bottom: 24px;
}

    .login-remember input[type="checkbox"] {
        accent-color: var(--color-main-green);
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

.login-submit-btn {
    margin-bottom: 16px;
}

.login-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    backdrop-filter: blur(3px);
}

    .loading-overlay.is-hidden {
        display: none;
    }

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border-gray);
    border-top-color: var(--color-main-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-family: var(--font-subtitle);
    font-size: 0.78rem;
    color: var(--color-gray-text);
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .login-branding {
        display: none;
    }

    .login-panel {
        flex: 1 1 100%;
    }
}
