body {
    margin: 0;
    min-height: 100vh;
    font-family: "PT Sans", sans-serif;
    background: var(--roden-bg);
    color: var(--roden-text);
}

.roden-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.roden-auth-brand {
    padding: 3rem;
    background: var(--roden-bg);
    border-right: 1px solid var(--roden-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.roden-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(230, 237, 243, 0.06) 0,
        rgba(230, 237, 243, 0.06) 1px,
        transparent 1px,
        transparent 24px
    );
}

.roden-auth-brand > * {
    position: relative;
}

.roden-auth-brandline {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.roden-auth-emblem {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--roden-primary);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.28rem;
    padding: 0.55rem;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(230, 237, 243, 0.15);
}

.roden-auth-emblem > span {
    border-radius: 0.18rem;
    background: var(--roden-text);
    opacity: 0.95;
}

.roden-auth-wordmark {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--roden-text);
}

.roden-auth-brand h1 {
    margin: 0;
    font-size: 2rem;
}

.roden-auth-brand p {
    margin: 0;
    color: var(--roden-text-muted);
    max-width: 28rem;
}

.roden-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--roden-surface);
}

.roden-auth-card {
    width: 100%;
    max-width: 28rem;
    background: var(--roden-surface);
    border: 1px solid var(--roden-border);
    border-radius: 12px;
    padding: 2rem;
    box-sizing: border-box;
}

.roden-auth-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.roden-auth-card p {
    margin: 0 0 1rem;
    color: var(--roden-text-muted);
    line-height: 1.4;
}

.roden-auth-note {
    font-size: 0.9rem;
    color: var(--roden-text-muted);
}

.roden-auth-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.roden-auth-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--roden-text);
}

.roden-auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--roden-border);
    border-radius: 12px;
    background: var(--roden-bg);
    color: var(--roden-text);
    font: inherit;
}

.roden-auth-input::placeholder {
    color: var(--roden-text-muted);
}

.roden-auth-input:focus {
    border-color: var(--roden-primary);
    outline: none;
}

.roden-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.875rem 1rem;
    border: 1px solid var(--roden-primary);
    border-radius: 12px;
    background: var(--roden-primary);
    color: var(--roden-text);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.roden-auth-button:hover,
.roden-auth-button:focus {
    background: var(--roden-primary-dark);
    border-color: var(--roden-primary-dark);
    outline: none;
}

.roden-auth-link {
    color: var(--roden-text-muted);
    text-decoration: none;
}

.roden-auth-link:hover,
.roden-auth-link:focus {
    color: var(--roden-text);
    outline: none;
}

.roden-auth-idps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.roden-auth-idp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid var(--roden-border);
    border-radius: 12px;
    background: transparent;
    color: var(--roden-text);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.roden-auth-idp-icon-svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: var(--roden-text-muted);
}

.roden-auth-idp-label {
    line-height: 1;
}

.roden-auth-idp:hover,
.roden-auth-idp:focus {
    border-color: var(--roden-primary);
    color: var(--roden-text);
    outline: none;
}

.roden-auth-idp:hover .roden-auth-idp-icon-svg,
.roden-auth-idp:focus .roden-auth-idp-icon-svg {
    color: var(--roden-text);
}

.roden-auth-public-links {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
}

.roden-auth-public-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    border: 1px solid var(--roden-border);
    border-radius: 12px;
    color: var(--roden-text-muted);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.roden-auth-public-link:hover,
.roden-auth-public-link:focus {
    color: var(--roden-text);
    border-color: var(--roden-primary);
    outline: none;
}

.roden-auth-legal {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.roden-auth-card.is-success {
    border-color: var(--module-community);
}

.roden-auth-card.is-pending {
    border-color: var(--module-estateflow);
}

.roden-auth-card.is-error {
    border-color: var(--module-buildcraft);
}

@media (max-width: 960px) {
    .roden-auth-shell {
        grid-template-columns: 1fr;
    }

    .roden-auth-brand {
        border-right: 0;
        border-bottom: 1px solid var(--roden-border);
        padding: 2rem;
    }

    .roden-auth-panel {
        padding: 1.5rem;
    }

    .roden-auth-idps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        min-height: 100dvh;
    }

    .roden-auth-brand {
        padding: 1rem 1rem 0.85rem;
        gap: 0.45rem;
    }

    .roden-auth-brandline {
        gap: 0.65rem;
    }

    .roden-auth-emblem {
        width: 2.2rem;
        height: 2.2rem;
        padding: 0.42rem;
        border-radius: 0.6rem;
    }

    .roden-auth-wordmark {
        font-size: 1.2rem;
    }

    .roden-auth-brand h1 {
        font-size: 1.15rem;
    }

    .roden-auth-brand p {
        font-size: 0.84rem;
        max-width: none;
    }

    .roden-auth-panel {
        align-items: flex-start;
        padding: 0.9rem;
    }

    .roden-auth-card {
        max-width: none;
        padding: 1rem;
        border-radius: 10px;
    }

    .roden-auth-card h2 {
        margin-bottom: 0.35rem;
        font-size: 1.1rem;
    }

    .roden-auth-card p {
        margin-bottom: 0.7rem;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .roden-auth-note {
        font-size: 0.82rem;
    }

    .roden-auth-button,
    .roden-auth-idp,
    .roden-auth-public-link {
        padding: 0.72rem 0.85rem;
        border-radius: 10px;
    }

    .roden-auth-idps {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        margin: 0.75rem 0;
    }

    .roden-auth-public-links {
        gap: 0.45rem;
        margin: 0.75rem 0;
    }

    .roden-auth-legal {
        margin-top: 0.75rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 640px) and (max-height: 740px) {
    .roden-auth-brand p {
        display: none;
    }
}
