*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans, 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); font-size: 14px; color: #1e293b; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
input, button { font-family: inherit; }

.signin-page {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    background: #ffffff;
    font-family: 'Poppins', 'Noto Sans JP', var(--font-sans, system-ui, sans-serif);
}

.signin-hero {
    position: relative;
    display: none;
    width: 50%;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 95% -5%, rgba(124, 92, 252, 0.2) 0%, transparent 30%),
        radial-gradient(circle at -5% 110%, rgba(45, 212, 191, 0.15) 0%, transparent 28%),
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.1) 0%, transparent 24%),
        linear-gradient(145deg, #0a0e1a 0%, #12102e 35%, #0d1117 70%, #0a0e1a 100%);
    color: #ffffff;
}

.signin-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%);
    opacity: 1;
}

.signin-hero__ambient,
.signin-hero__grid,
.signin-hero__beam {
    position: absolute;
    pointer-events: none;
}

.signin-hero__ambient {
    display: none;
}

.signin-hero__grid {
    display: none;
}

.signin-hero__beam {
    display: none;
}

.signin-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    margin: 0;
    padding: 60px;
    transform: none;
}

.signin-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 40px;
}

.signin-brand__logo {
    display: block;
    width: 92px;
    height: auto;
}

.signin-hero__copy {
    max-width: 500px;
}

.signin-hero__eyebrow {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.signin-hero h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
    text-wrap: balance;
    white-space: pre-line;
}

.signin-hero__headline-accent {
    background: linear-gradient(135deg, #ffcf54 0%, #ff952c 44%, #7c3ff2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.signin-hero__description {
    max-width: 420px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0;
    white-space: pre-line;
}

.signin-hero__points {
    display: grid;
    gap: 16px;
    max-width: 420px;
    margin-top: 32px;
    list-style: none;
}

.signin-hero__points li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    min-height: 42px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0;
}

.signin-hero__point-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(124, 92, 252, 0.15);
    box-shadow: none;
}

.signin-hero__point-icon i {
    color: #7c5cfc;
    font-size: 20px;
    line-height: 1;
}

.signin-form-panel {
    display: flex;
    flex-direction: column;
    width: 50%;
    min-height: 100vh;
    background: #ffffff;
    overflow-y: auto;
}

.signin-form-panel nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    padding: 0;
}

.signin-form-panel nav .logo {
    display: none;
    width: 136px;
    height: 54px;
    background: url('/images/thumb-anybotlogo.png') left center/contain no-repeat;
}

.signin-form-panel nav .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.signin-form-panel nav .nav-right span {
    font-size: 12px;
    color: #64748b;
}

.signin-form-panel nav .nav-right a {
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.signin-form-panel nav .nav-right a:hover {
    background: #2f1f74;
    box-shadow: 0 10px 24px rgba(47, 31, 116, 0.22);
}

.signin-form-panel .form-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.signin-form-panel .form-card {
    width: 100%;
    max-width: 384px;
}

.signin-form-panel .form-card h1 {
    margin-bottom: 8px;
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.signin-form-panel .form-card .subtitle {
    margin-bottom: 28px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.signin-form-panel .form-card .error-msg {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.06);
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.45;
}

.signin-form-panel .form-card .success-msg {
    color: #047857;
    font-size: 13px;
    margin-bottom: 16px;
}

.signin-form-panel .form-card form + form {
    margin-top: 20px;
}

.signin-form-panel .form-card .field {
    margin-bottom: 20px;
}

.signin-form-panel .form-card label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.signin-form-panel .form-card input[type=text],
.signin-form-panel .form-card input[type=password] {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #dbe1ea;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.signin-form-panel .form-card input:focus {
    border-color: #6d4cff;
    box-shadow: 0 0 0 3px rgba(109, 76, 255, 0.16);
}

.signin-form-panel .form-card input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.signin-form-panel .form-card .forgot {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
    text-align: right;
    transition: color 0.2s;
}

.signin-form-panel .form-card .forgot:hover {
    color: #4f37d4;
}

.signin-form-panel .form-card button[type=submit],
.signin-form-panel .form-card .signin-primary-button {
    width: 100%;
    height: auto;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c5cfc, #6d46ef);
    box-shadow: 0 12px 26px rgba(109, 76, 255, 0.24);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    transition: box-shadow 0.2s, filter 0.2s, transform 0.2s;
}

.signin-form-panel .form-card .signin-primary-button {
    margin-top: 0;
}

.signin-form-panel .form-card .signin-secondary-button {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    transition: border-color 0.2s;
}

.signin-form-panel .form-card .signin-secondary-button:hover {
    border-color: #94a3b8;
}

.signin-account-note {
    margin-top: 24px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.signin-account-note a {
    color: #7c5cfc;
    font-weight: 700;
}

.signin-form-panel .form-card button[type=submit]:hover,
.signin-form-panel .form-card .signin-primary-button:hover {
    box-shadow: 0 16px 34px rgba(109, 76, 255, 0.3);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.signin-form-panel .form-card button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.12);
    opacity: 0.7;
    transform: none;
}

.signin-form-panel footer {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 16px 32px 24px;
}

.signin-form-panel footer a {
    color: #94a3b8;
    font-size: 12px;
    transition: color 0.2s;
}

.signin-form-panel footer a:hover {
    color: #64748b;
}

.signin-page a:focus-visible,
.signin-page button:focus-visible,
.signin-page input:focus-visible {
    outline: 2px solid #06c755;
    outline-offset: 3px;
}

@media (min-width: 720px) {
    .signin-hero { display: block; }
    .signin-form-panel nav .nav-right { display: none; }
}

@media (min-width: 720px) and (max-width: 980px) {
    .signin-hero { width: 50%; }
    .signin-form-panel { width: 50%; }
    .signin-hero__content {
        max-width: none;
        padding: 44px 28px;
    }
    .signin-brand {
        margin-bottom: 36px;
    }
    .signin-hero h1 {
        font-size: 28px;
        line-height: 1.22;
    }
    .signin-hero__description {
        font-size: 14px;
        line-height: 1.75;
    }
    .signin-hero__points {
        gap: 13px;
        margin-top: 32px;
    }
    .signin-hero__points li {
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 10px;
        font-size: 12px;
    }
    .signin-hero__point-icon {
        width: 34px;
        height: 34px;
    }
    .signin-hero__point-icon i {
        font-size: 18px;
    }
}

@media (max-width: 719px) {
    .signin-page {
        min-height: 100svh;
        overflow: auto;
    }
    .signin-form-panel {
        width: 100%;
        min-height: 100svh;
    }
    .signin-form-panel nav {
        display: none;
    }
    .signin-form-panel nav .logo {
        display: block;
        width: 116px;
        height: 44px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.94);
        background-size: contain;
    }
    .signin-form-panel nav .nav-right {
        display: none;
    }
    .signin-form-panel .form-body {
        justify-content: flex-start;
        padding: 56px 22px 24px;
    }
    .signin-form-panel .form-card h1 {
        font-size: 28px;
    }
    .signin-form-panel footer {
        justify-content: center;
        padding: 24px 20px;
    }
}
