body {
    display: flex;
    min-height: 100vh;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
}

.login-left,
.login-right {
    min-height: 100vh;
}

.login-left {
    background: #1E88E5;
    color: #fff;
    flex: 0 0 34%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    padding: 30px;
}
.login-left .logo {
    font-weight: 700;
    font-size: 1.4rem;
}
.login-left h1 {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: auto 0;
    color: #fff;
}

.login-right {
    background: #fff;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
}

@media (min-width: 768px) {
    .login-right {
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
}

.login-right-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-errors {
    color: #e74c3c;
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.form-success {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.login-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.login-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 9999px;
    background: #000;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.terms {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.terms input{
    width: 40px;
    margin-top: 18px;
}
.terms label {
    font-size: 0.9rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 0.9rem;
    color: #000;
    opacity: 0.7;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.3);
}

.gsi-material-button {
    display: block;
    align-self: center;
    margin: 0 auto;
    width: auto;
    max-width: 260px;
}

.register-form .gsi-material-button {
    margin-top: 16px;
}

@media (max-width: 767.98px) {
    .gsi-material-button {
        width: 100%;
        max-width: none;
    }
}

.register-link {
    font-size: 0.9rem;
    color: #1E88E5;
    text-align: center;
}

@media (max-width: 767.98px) {
    body {
        flex-direction: column;
    }
    .login-left {
        width: 100%;
        height: 180px;
        min-height: auto;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .login-right {
        width: 100%;
        min-height: auto;
        margin-top: 24px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #0F172A;
        color: #fff;
    }
    .login-right {
        background: #0F172A;
        color: #fff;
    }
    .login-form input {
        background: #1E293B;
        border-color: #334155;
        color: #fff;
    }
    .divider {
        color: #fff;
    }
    .divider::before,
    .divider::after {
        background: rgba(255,255,255,0.3);
    }
    .register-link {
        color: #63A5F9;
    }
}