:root {
    --gm3-sys-color-error: #b62b23;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.gm-login,
body.gm-2fa {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    min-height: 100vh;
    background: #fff;
    color: #202124;
    display: flex;
    flex-direction: column;
}

body.gm-login a,
body.gm-2fa a {
    color: #1a73e8;
    text-decoration: none;
}

body.gm-login a:hover,
body.gm-2fa a:hover {
    text-decoration: none;
}

.gm-google-g {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.gm-google-g svg {
    width: 24px;
    height: 24px;
}

.gm-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.gm-page-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    max-width: 960px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
    padding: 48px 40px 36px;
    gap: 32px;
}

@media (max-width: 768px) {
    .gm-page-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
}

.gm-page-left h1 {
    font-size: 32px;
    font-weight: 400;
    margin: 16px 0 12px;
    color: #202124;
    line-height: 1.25;
}

.gm-page-left p {
    font-size: 14px;
    line-height: 1.5;
    color: #5f6368;
}

.gm-page-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gm-account-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    padding: 6px 14px 6px 6px;
    margin-top: 20px;
    font-size: 14px;
    color: #202124;
    background: #fff;
}

.gm-account-pill .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.gm-page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 12px;
    color: #5f6368;
}

.gm-page-footer a {
    color: #5f6368;
    margin-left: 16px;
}

.gm-page-footer-links {
    display: flex;
    gap: 16px;
}

.gm-field {
    width: 100%;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #202124;
    font-size: 16px;
    padding: 13px 15px;
    outline: none;
    transition: border-color 0.15s;
}

.gm-field::placeholder {
    color: #9aa0a6;
}

.gm-field:focus {
    border: 2px solid #1a73e8;
    padding: 12px 14px;
}

.gm-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
}

.gm-actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gm-next-btn,
.gm-sms-next {
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    min-width: 80px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.gm-next-btn:hover,
.gm-sms-next:hover {
    background: #1765cc;
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.45);
}

.gm-link-btn {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.gm-spinner-wrap {
    min-height: 100vh;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #dadce0;
    border-top-color: #1a73e8;
    border-radius: 50%;
    animation: gm-spin 0.8s linear infinite;
}

@keyframes gm-spin {
    to { transform: rotate(360deg); }
}
