/* Matter v0.2.5 — authentication */

/* Top-bar logout: deliberately looks like the other quiet navigation actions. */
.logout-form {
    margin: 0;
    display: flex;
    align-items: center;
}

nav .nav-logout {
    appearance: none;
    border: 0;
    background: transparent;
    color: #666;
    height: auto;
    min-height: 0;
    padding: 9px 12px;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
}

nav .nav-logout:hover {
    background: #f4f4f1;
    color: #171717;
}

/* Standalone login page. It intentionally does not inherit the application chrome. */
.login-page {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background: #f5f5f3;
    color: #171717;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.login-shell {
    width: min(100%, 330px);
    transform: translateY(-4vh);
}

.login-brand {
    margin-bottom: 36px;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    color: #6f6f6b;
    font-size: 12px;
    font-weight: 600;
}

.login-field input {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 9px 11px;
    border: 1px solid #d7d7d2;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 13px;
}

.login-field input:focus {
    border-color: #9f9f99;
    box-shadow: 0 0 0 2px rgba(23, 23, 23, 0.06);
}

.login-submit {
    width: 100%;
    height: 40px;
    margin-top: 4px;
    border: 0;
    border-radius: 9px;
    background: #171717;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.login-submit:hover {
    background: #2a2a2a;
}

.login-error {
    padding: 10px 11px;
    border: 1px solid #e3caca;
    border-radius: 9px;
    background: #fbf4f4;
    color: #8d3434;
    font-size: 12px;
    line-height: 1.4;
}

/* Invite-only account creation and acceptance. */
.invitation-shell {
    width: min(100%, 390px);
}

.invitation-card h1 {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.invitation-context {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid #dfdfda;
    border-bottom: 1px solid #dfdfda;
    font-size: 13px;
}

.invitation-context span,
.invitation-meta,
.invitation-copy {
    color: #6f6f6b;
}

.invitation-context strong {
    color: #171717;
    font-size: 14px;
}

.invitation-meta {
    margin: 10px 0 24px;
    font-size: 11px;
    line-height: 1.45;
}

.invitation-copy {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.55;
}

.invitation-email {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.invitation-register-form {
    margin-top: 4px;
}

.invitation-link-button {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.invitation-logout-form {
    margin-top: 12px;
}

.secondary-auth-button {
    border: 1px solid #d7d7d2;
    background: #fff;
    color: #171717;
}

.secondary-auth-button:hover {
    background: #f1f1ee;
}

.field-error {
    margin-top: 5px;
    color: #8d3434;
    font-size: 11px;
    line-height: 1.35;
}

.auth-aside {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
}

.auth-aside a {
    color: #6f6f6b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-aside a:hover {
    color: #171717;
}

/* Phones zoom into fields under 16px; keep the page as it is. */
@media (max-width: 900px) {
    .login-field input {
        font-size: 16px;
    }
}
