* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    color: #1a1a1a;
    background: linear-gradient(165deg, #d9e9fc 0%, #eef4fc 45%, #f8fbff 100%);
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.logo {
    width: 90px;
    filter: drop-shadow(0 2px 8px rgba(24, 119, 242, 0.12));
}

.header-text {
    text-align: center;
    flex: 1;
}

.header-text h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.header-text h2 {
    font-size: 15px;
    font-weight: 400;
    margin-top: 6px;
    color: #8e8e8e;
}

/* MAIN */
.main {
    display: flex;
    height: calc(100vh - 120px);
    min-height: 420px;
}

/* LEFT IMAGE */
.left {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding-left: 0px;
    padding-right: 10px;
}

.person {
    max-height: 92%;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(24, 119, 242, 0.1);
}

/* RIGHT LOGIN */
.right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 380px;
    max-width: 100%;
    padding: 32px 32px 36px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 4px 24px rgba(24, 119, 242, 0.08),
        0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
}

.login-box h3 {
    text-align: center;
    margin-bottom: 26px;
    font-size: 22px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #1a1a1a;
}

.login-box input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 15px;
}

.login-box input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

.login-box input::placeholder {
    color: #a3a3a3;
}

.login-box button {
    width: 100%;
    padding: 14px 16px;
    background: #1877f2;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.login-box button:hover {
    background: #166fe5;
}

.error {
    margin-top: 12px;
    color: #dc2626;
    text-align: center;
    font-size: 14px;
}

/* Mobile-only layout (phone) */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .main {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .left {
        justify-content: center;
        align-items: center;
        padding-left: 0;
    }

    .person {
        max-height: 260px;
    }

    .right {
        flex: none;
        justify-content: center;
        align-items: flex-start;
        margin-top: 20px;
    }

    .login-box {
        width: 100%;
        max-width: 400px;
    }
}

@supports (padding: max(0px)) {
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    .main {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
