﻿:root {
    --mdc-theme-primary: #00A49D;
    --mdc-theme-on-primary: white;
}

body {
    margin: 0px;
    background-color: #ECF1FA;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#passwordPolicy {
    display: none;
}
.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
    color: #00A49D;
}

.mdc-typography--headline4{
    margin-bottom: 15px;
    font-size: 25px;
    font-weight: 700;
}

.mdc-snackbar__surface {
    min-width: unset;
}

.btnIdrettensID {
    text-align: center;
    border: 1px solid #002147;
    padding: 3px 0px 0px 0px;
    width: 257px;
    margin-left: 8px;
    border-radius: 5px;
    max-height: 38px;
}

.social-login-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.social-btn:hover {
    background-color: #f8f8f8;
    border-color: #bbb;
}

.social-btn-icon {
    flex-shrink: 0;
}

.social-btn-apple {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.social-btn-apple:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.social-btn-idrettensid img {
    height: 18px;
    flex-shrink: 0;
}

.social-btn-vipps {
    color: #FF5B24;
}

.local-login-hint {
    text-align: center;
    margin-bottom: 16px;
    color: #555;
}

/* Username display (locked display in step 2) */
.username-display {
    margin-bottom: 16px;
    font-family: Roboto, sans-serif;
}

.username-display-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.username-display-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 12px;
}

.username-display-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.username-display-change {
    background: none;
    border: none;
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: #00A49D;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-left: 12px;
}

.username-display-change:hover {
    text-decoration: underline;
}

/* Passkey button row */
.passkey-btn-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.passkey-btn-main {
    flex: 1;
    min-width: 0;
    color: #00A49D;
}

.passkey-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.passkey-info-btn:hover {
    background-color: #f8f8f8;
    border-color: #bbb;
    color: #555;
}

/* Outlined button style */
.btn-outlined {
    background-color: #fff !important;
    border: 1.5px solid #00A49D !important;
    color: #00A49D !important;
}

.btn-outlined:hover {
    background-color: #e6f7f6 !important;
}

/* OTP section */
.otp-message {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: #00796b;
    background-color: #e6f7f6;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-align: center;
}

.otp-digit-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-digit {
    width: 44px;
    height: 52px;
    box-sizing: border-box;
    font-family: Roboto, monospace;
    font-size: 24px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    padding: 0;
    caret-color: #00A49D;
}

.otp-digit:focus {
    border-color: #00A49D;
    box-shadow: 0 0 0 1px #00A49D;
}

.otp-error {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: #e74c3c;
    background-color: #fdf0ef;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* SMS fallback — subtle secondary link, revealed only after the email has had a head start */
.btn-send-sms {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 14px auto 0;
    padding: 6px 8px;
    background-color: transparent;
    color: #00796b;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
}

.btn-send-sms:hover {
    background-color: transparent;
    text-decoration: underline;
}

/* SMS disambiguation form (multi-account: pin one by mobile + name) */
.sms-disambig-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.sms-disambig-input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    padding: 0 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.sms-disambig-input:focus {
    border-color: #00A49D;
    box-shadow: 0 0 0 1px #00A49D;
}

.sms-disambig-cc {
    flex: 0 0 72px;
    margin-bottom: 0;
}

.sms-disambig-mobile {
    flex: 1 1 auto;
    margin-bottom: 0;
}

/* Button spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #00A49D;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.password-field-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #555;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle--visible .icon-eye {
    display: none;
}

.password-toggle--visible .icon-eye-off {
    display: block;
}

.password-field-wrapper .mdc-text-field__input {
    padding-right: 36px;
}

.password-field-wrapper.mdc-text-field--outlined {
    overflow: visible;
}

.local-login-hint-tag {
    font-size: 11px;
    color: #00A49D;
    background-color: #e6f7f6;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.brandedviewtemplate-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
}

.error-card {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    background-color: #e74c3c;
    padding: 20px;
    margin-top: 20px;
    color: white;
}

.notice-card {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    padding: 10px 14px;
    margin-bottom: 12px;
    color: #664d03;
    font-family: Roboto, sans-serif;
    font-size: 12px !important;
    line-height: 1.4;
    border-radius: 4px;
}

.notice-card .mdc-typography--body1 {
    font-size: 12px !important;
}

.info-card {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
    background-color: #44798b;
    padding: 6px 16px;
    color: white;
    cursor: pointer;
}
.white-text {
    color: white!important;
}
.alert-header{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.alert-body{
    margin: 6px;
}

.hidden {
    display: none !important;
}

/* Spacing when no heading is present (logo directly followed by content) */
.brandedviewtemplate-logo-wrap + .social-login-section,
.brandedviewtemplate-logo-wrap + .section-divider,
.brandedviewtemplate-logo-wrap + form {
    margin-top: 30px;
}

#login-form.social-hidden {
    margin-top: 30px;
}

/* Login step visibility */
.login-step {
    display: none !important;
}

.login-step.active {
    display: block !important;
}

.alert-icon{
    color: rgb(63, 126, 184);
    width: 28px;
    margin-right: 12px;
}

.alert-svg{
    fill: rgba(255, 255, 255, 0.7);
}

.brandedviewtemplate-card {
    display: flex;
    flex-direction: row;
    min-height: 690px;
}

.brandedviewtemplate-form {
    padding: 50px;
    text-align: left;
    width: 280px;
    display: flex;
    flex-direction: column;
}

.brandedviewtemplate-form form {
    display: flex;
   flex-direction: column;
}

.peeps-img {
    width: auto;
    height: 400px;
}

.field-container {
    margin-bottom: 15px;
    display: flex;
   flex-direction: column;
}

.margin-15 {
    margin-bottom: 15px;
}

.mdc-typography--body2 {
    font-size: 14px;
    font-weight: 500;
    color: #A5A5A5;
}

.decrease-font {
    font-size: 0.9rem;
}

.mdc-typography--headline4 {
    margin-top: 40px;
}

.ref-text {
    color: #00A49D;
}

.reset-pass-text {
    margin-bottom: 15px;
    text-align: center;
}

.section-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #A5A5A5;
    font-family: Roboto, sans-serif;
    font-size: 13px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.section-divider::before {
    margin-right: 12px;
}

.section-divider::after {
    margin-left: 12px;
}

.page-description {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 24px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.forgot-password-link {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 12px;
}

.forgot-password-link:hover {
    color: #00a29c;
}

.password-policy {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #888;
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.passkey-list {
    margin-bottom: 30px;
}

.passkey-card {
    padding: 14px 16px;
    margin-bottom: 12px;
    font-family: Roboto, sans-serif;
}

.passkey-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.passkey-name {
    font-size: 14px;
    font-weight: 500;
}

.passkey-date {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.passkey-remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-family: Roboto, sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-left: 12px;
}

.passkey-empty {
    color: #888;
    margin-bottom: 20px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
}

.passkey-add-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px 16px 8px 16px;
    margin-bottom: 20px;
}

.passkey-add-title {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 14px;
}

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

.text-hint {
    color: #888;
    font-size: 13px;
    margin-top: 16px;
    font-family: Roboto, sans-serif;
}

.validation-hidden {
    display: none;
}

.passkey-hint {
    text-align: center;
    margin: 0 0 12px 0;
}

.passkey-hint-link {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    color: #00A49D;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.passkey-hint-link:hover {
    text-decoration: underline;
}

.passkey-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.passkey-modal-overlay.passkey-modal-visible {
    display: flex;
}

.passkey-modal {
    font-family: Roboto, sans-serif;
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 280px;
    width: calc(100% - 120px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.passkey-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.passkey-modal p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 12px 0;
}

.passkey-modal p:last-of-type {
    margin-bottom: 20px;
}

.passkey-modal-close {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #00A49D;
    text-decoration: none;
    display: block;
    text-align: center;
}

.passkey-modal-close:hover {
    text-decoration: underline;
}

.warn-banner {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #7a5300;
    background-color: #fff4d6;
    border-left: 4px solid #e6a700;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.warn-banner strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.warn-banner .warn-banner-action {
    display: inline-block;
    margin-top: 4px;
    font-weight: 500;
    color: #7a5300;
    text-decoration: underline;
}

.info-banner {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #31708f;
    background-color: #d9edf7;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.gender-row {
    display: flex;
}

.gender-row .mdc-form-field {
    flex: 1;
}

.social-login-readonly {
    background-color: #f5f5f5;
}

.social-login-readonly .mdc-text-field__input {
    color: #888;
    cursor: not-allowed;
}

.register-container {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.register-ccAndMobile {
    flex-direction: row;
}
.register-ccAndMobileValidation {
    font-family: Roboto, sans-serif;
    color: #e74c3c;
    display: none;
    margin: 10px 0px;
}
.register-ccAndMobile .register-cc {
    width: 75px;
}
.register-country {
    position: absolute;
    right: 10px;
    top: 19px;
    font-family: Roboto, sans-serif;
    display: none;
    color: #00A49D;
}
.register-ccAndMobile select.register-countrycode {
    height: 56px;
    border-radius: 5px;
    margin-right: 7px;
}
.register-description {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    padding-bottom: 20px;
}
.register-validation-error {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: #e74c3c;
    padding: 8px 12px;
    margin-bottom: 15px;
    background-color: #fdf0ef;
    border-radius: 4px;
}
#register-email-registration {
    margin-top: 0;
}
.register-switchto {
    display: flex;
    flex-direction: column;
}
.register-switchto a{
    display: flex;
    justify-content: center;
}
.username-text {
    font-weight: bold;
}

.user-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.logout-button {
    background-color: #e74c3c !important;
    margin-top: 15px;
}

.brandedviewtemplate-a {
    display: flex;
    text-decoration: none;
}

.brandedviewtemplate-redir {
    flex-grow: 1;
    text-align: center;
}
.brandedviewtemplate-logo {
    max-width: 100%;
}

.register-card-container {
    margin-bottom: 15px;
    text-decoration: none;
    color: black;
}

.register-card {
    padding: 20px;
}

.register-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.register-card-body {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
}

.brandedviewtemplate-background {
    height: 100%
}

.brandedviewtemplate-img {
    position: relative;
    width: 570px;
    height: auto;
    overflow: hidden;
}

.brandedviewtemplate-overlaycontainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brandedviewtemplate-overlay {
    width: 400px;
}
/* Account dashboard */
.dashboard-section {
    margin-bottom: 20px;
}

.dashboard-section-title {
    font-family: Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dashboard-card {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 6px;
}

.dashboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.dashboard-label {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: #888;
}

.dashboard-value {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.dashboard-link {
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: #00A49D;
    text-decoration: none;
}

.dashboard-link:hover {
    text-decoration: underline;
}

.dashboard-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #00A49D;
    background-color: #e6f7f6;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.dashboard-session-current {
    border-color: #00A49D;
}

.dashboard-session-action {
    margin-top: 6px;
}

.dashboard-revoke-btn {
    background: none;
    border: none;
    font-family: Roboto, sans-serif;
    font-size: 13px;
    color: #e74c3c;
    cursor: pointer;
    padding: 0;
}

.dashboard-revoke-btn:hover {
    text-decoration: underline;
}

.login-a {
    text-decoration: none;
    text-align: center;
}
@media screen and (max-width: 1000px) {
    body {
        align-items: unset;
        justify-content: unset;
    }

    .brandedviewtemplate-card {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .brandedviewtemplate-form {
        padding: 24px 20px;
        width: auto;
    }

    .body-content {
        width: 100%;
        padding: 20px;
    }

    .login-page {
        width: 100%;
        height: 100%;
    }

    .login-card {
        width: 100%;
        height: 100%;
    }


    .login-form {
        width: 100%;
        padding: 25px;
    }

    #rightImg {
        display: none;
        visibility: hidden;
    }
}
/* ID-17 — consent screen. Classes only: the CSP on this app blocks inline styles. */
.consent-title {
    margin-bottom: 8px;
}

.consent-intro {
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
}

.consent-section {
    margin-bottom: 20px;
}

.consent-section-title {
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.consent-scopes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.consent-scope {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

/* mcp.write and offline_access set Emphasize, because they are the consequential ones. */
.consent-scope-emphasized {
    border-color: rgba(0, 0, 0, 0.38);
    background-color: rgba(0, 0, 0, 0.03);
}

.consent-scope-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.consent-scope-name {
    font-weight: 500;
}

.consent-scope-required {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
    margin-left: 4px;
}

.consent-scope-description {
    color: rgba(0, 0, 0, 0.6);
    margin: 6px 0 0 28px;
}

.consent-remember {
    margin: 20px 0;
}

.consent-remember label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.consent-clientlink {
    margin-bottom: 12px;
}

.consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
