:root {
    --primary: #E5CA10;
    --primary-dark: #c4b00e;
    --primary-soft: #fffef0;
    --primary-border: #f0e68c;
    --text-strong: #1a1a1a;
    --text-soft: #555555;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 34%),
        linear-gradient(135deg, #b8a00e 0%, #E5CA10 48%, #f0e68c 100%);
    color: var(--text-strong);
}

.login-container {
    min-height: 100dvh;
    padding: 0;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(320px, 480px) minmax(420px, 1fr);
    min-height: 100dvh;
    width: 100%;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(2rem, 5vw, 4.5rem);
    background: #f5f5f5;
    backdrop-filter: blur(6px);
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(229, 202, 16, 0.15);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.login-logo {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto 1.2rem;
}

.login-header h1 {
    color: var(--text-strong);
    margin: 0 0 0.75rem;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.login-header p {
    color: var(--text-soft);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--text-strong);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-strong);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(229, 202, 16, 0.2);
    background: #ffffff;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 58%, #f0e68c 100%);
    color: var(--text-strong);
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 30px rgba(196, 176, 14, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 34px rgba(196, 176, 14, 0.35);
}

.error-message {
    background: #fff1f2;
    color: #c33;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    border: 1px solid #fecdd3;
    display: none;
}

.error-message.show {
    display: block;
}

.login-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 5rem);
    overflow: hidden;
}

.login-visual::before,
.login-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-visual::before {
    width: 26rem;
    height: 26rem;
    background: rgba(255, 255, 255, 0.15);
    top: -7rem;
    right: -6rem;
}

.login-visual::after {
    width: 18rem;
    height: 18rem;
    background: rgba(255, 255, 255, 0.1);
    bottom: -5rem;
    left: 10%;
}

.visual-card {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    text-align: center;
}

.visual-copy {
    max-width: 30rem;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.92);
}

.visual-copy h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    color: #ffffff;
}

.visual-copy p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.visual-card img {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.2));
}

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

.login-header h1,
.form-group,
.login-btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-logo { animation: fadeUpIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards; opacity: 0; }
.login-header h1 { animation-delay: 0.1s; }
.form-group:nth-of-type(1) { animation-delay: 0.2s; }
.form-group:nth-of-type(2) { animation-delay: 0.3s; }
.login-btn { animation-delay: 0.4s; }

@media (max-width: 920px) {
    html,
    body {
        overflow: auto;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-panel {
        min-height: 100dvh;
        justify-content: center;
        padding: 2rem 1.5rem;
    }

    .login-card {
        max-width: 420px;
    }

    .login-logo {
        margin: 0 auto 1.2rem;
    }

    .login-visual {
        display: none;
    }
}