/* MonManager authentication - Material Design 3 */

body.mm-auth-page {
    background:
        radial-gradient(circle at top left, rgba(46, 125, 50, 0.1), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    color: var(--md-on-background);
}

.mm-auth-shell {
    width: min(1180px, calc(100% - 2rem));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1rem;
    align-items: stretch;
    padding: 1rem 0 1.5rem;
}

.mm-auth-panel {
    border-radius: 28px;
    border: 1px solid var(--md-outline-variant);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
    overflow: hidden;
}

.mm-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f1fdf4 0%, #ffffff 70%);
}

.mm-auth-brand__inner {
    max-width: 28rem;
}

.mm-auth-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(46, 125, 50, 0.14);
}

.mm-auth-title {
    margin: 1rem 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.05em;
}

.mm-auth-copy {
    margin: 0;
    color: var(--md-on-surface-variant);
    line-height: 1.7;
    max-width: 40ch;
}

.mm-auth-visual {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--md-outline-variant);
}

.mm-auth-visual__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.mm-auth-visual__card {
    padding: 1rem;
    border-radius: 18px;
    background: var(--md-surface);
    border: 1px solid var(--md-outline-variant);
}

.mm-auth-visual__label {
    margin: 0 0 0.25rem;
    color: var(--md-on-surface-variant);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mm-auth-visual__value {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
}

.mm-auth-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: var(--md-surface);
}

.mm-auth-card {
    max-width: 32rem;
    width: 100%;
}

.mm-auth-heading {
    margin: 0 0 0.35rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
}

.mm-auth-subheading {
    margin: 0 0 1.5rem;
    color: var(--md-on-surface-variant);
}

.mm-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.mm-field__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-black);
}

.mm-input {
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--md-outline-variant);
    background: #fff;
    color: var(--brand-black);
    transition: var(--md-transition);
}

.mm-input:focus {
    outline: none;
    border-color: rgba(46, 125, 50, 0.9);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.mm-form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 1.25rem;
    color: var(--md-on-surface-variant);
    font-size: 0.95rem;
}

.mm-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.mm-divider {
    position: relative;
    display: grid;
    place-items: center;
    margin: 1.2rem 0;
    color: var(--md-on-surface-variant);
}

.mm-divider::before {
    content: "";
    width: 100%;
    height: 1px;
    background: var(--md-outline-variant);
    position: absolute;
    inset: 50% 0 auto;
    transform: translateY(-50%);
}

.mm-divider span {
    position: relative;
    padding: 0 0.8rem;
    background: var(--md-surface);
}

.mm-auth-note {
    margin-top: 1.2rem;
    text-align: center;
    color: var(--md-on-surface-variant);
}

.mm-link {
    color: var(--brand-green);
    font-weight: 700;
}

.mm-alert {
    display: none;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid transparent;
}

.mm-alert.is-visible {
    display: block;
}

.mm-alert--error {
    background: #fff1f2;
    border-color: rgba(230, 57, 70, 0.2);
    color: #b42318;
}

.mm-alert--success {
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.2);
    color: #166534;
}

.mm-oauth-btn {
    background: linear-gradient(135deg, var(--brand-green) 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(46, 125, 50, 0.14);
}

.mm-oauth-btn:hover {
    color: #fff;
}

.mm-google-slot {
    width: 100%;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mm-google-slot > div {
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.mm-google-slot iframe {
    max-width: 100% !important;
}

.mm-full-width {
    width: 100%;
}

@media (max-width: 991.98px) {
    .mm-auth-shell {
        grid-template-columns: 1fr;
        width: min(100%, calc(100% - 1rem));
    }

    .mm-auth-brand {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .mm-auth-form {
        padding: 1.5rem;
    }

    .mm-form-row,
    .mm-auth-visual__row {
        grid-template-columns: 1fr;
    }

    .mm-form-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
