/* Open Sans font family for auth pages (variable font covering 300–800) */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 300 800; /* supports Light (300) to ExtraBold (800) */
  font-style: normal;
  font-display: swap;
}

body {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #071f30;
}

.login-form-wrapper {
    max-width: 30em;
    box-shadow: 0 10px 20px rgb(0 0 0 / 20%);
    padding: 40px;
    border: 1px solid rgba(210, 210, 210, 0.3);
    margin: auto;
    margin-top: 0.6em;
    border-radius: 6px;
}
.login-form-heading {
    border-bottom: 1px solid rgba(210, 210, 210, 0.3);
    padding-bottom: 1em;
}
.or-block {
    position: relative;
    top: 0;
    text-align: center;
    margin-top: 0.6em;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.or-block::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 100%;
    top: 11px;
    background: rgba(210, 210, 210, 0.3);
}
.or-block__text {
    background-color: #fff;
    width: 33px;
    position: absolute;
    z-index: 1;
}
.or-block__link {
    display: block;
    color: black;
    text-decoration: none;
    margin-top: 1.9em;
    text-align: center;
}
.btn-submit {
    margin-top: 0.6em;
    width: 100%;
    height: 2.375em;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid rgba(22, 22, 22, 0.2);
    color: #444;
}
.login-form__label {
    display: block;
}
.login-form__input {
    height: 2em;
    width: 100%;
    border: 1px solid rgba(210, 210, 210, 0.3);
    padding: 1em 0.25em;
    margin: 0.6em 0;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1.15px;
}
.login-form__input:focus,
.login-form__input:active {
    outline: none;
    border: 1px solid rgb(0, 135, 202);
}


/* --- Auth error page (OAuth) --- */
.auth-card {
    max-width: 560px;
    margin: 32px auto;
    background: #fff;
    border: 1px solid rgba(210, 210, 210, 0.3);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.auth-hero-title {
    margin: 0 0 12px 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: #0b2a3a; /* deep navy similar to screenshot */
    text-align: center;
}

.auth-subtitle {
    margin: 0;
    color: #243b53; /* muted navy */
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 15px;
    leading-trim: none;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
}

.auth-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    /* justify-items has no effect on flex containers */
    justify-content: center;
    align-items: stretch; /* make buttons equal height */
    flex-wrap: nowrap; /* keep buttons on one line by default */
}

/* Button spec inside actions row (mirrors frontend index.css) */
.auth-actions .btn {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0;

    /* Default to full-width buttons in the row; max width keeps them tidy */
    width: 100%;
    max-width: 448px;
    height: 35px;
    padding: 6px 16px;
    border-radius: 12px;
    border-width: 1px;
    gap: 8px; /* spacing between icon and label */

    /* Allow two equal buttons to sit on one line on wide screens */
    flex: 1 1 0;
    min-width: 0;
}

/* Stack buttons vertically on narrow screens (< 550px) */
@media (max-width: 549px) {
    .auth-actions {
        flex-direction: column;
    }
    .auth-actions .btn {
        width: unset !important; /* follow frontend spec */
        flex: 0 0 auto;
    }
}

/* Scoped variants for primary and outline buttons to match frontend */
.auth-actions .btn-mint,
.auth-actions .btn-primary {
    background: #028AEC;
    border: 1px solid #077CD0;
    color: #ffffff;
}

.auth-actions .btn-mint:hover,
.auth-actions .btn-mint:focus,
.auth-actions .btn-primary:hover,
.auth-actions .btn-primary:focus {
    background: #028AEC;
    border-color: #077CD0;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 138, 236, 0.25);
}

.auth-actions .btn-outline {
    background: #ffffff;
    color: #0b2a3a;
    border: 1px solid #6B7780;
}

.auth-actions .btn-outline:hover,
.auth-actions .btn-outline:focus {
    background: #f6f8fa;
    border-color: #6B7780;
    color: #0b2a3a;
    box-shadow: 0 0 0 3px rgba(2, 138, 236, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-primary {
    background: #0a84ff; /* bright blue */
    color: #fff;
    border: 1px solid #0a84ff;
}
.btn-primary:hover,
.btn-primary:focus {
    background: #086fd8;
    border-color: #086fd8;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25);
}

.btn-outline {
    background: #fff;
    color: #0b2a3a;
    border: 1px solid #d0d7de;
}
.btn-outline:hover,
.btn-outline:focus {
    background: #f6f8fa;
    border-color: #c3cbd3;
}

.auth-details {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    border-radius: 8px;
}
.auth-details > summary {
    list-style: none;
    font-weight: 600;
    cursor: pointer;
    margin: -12px -14px 8px -14px; /* bleed header to edges */
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f2;
}
.auth-details[open] > summary {
    border-bottom-color: #e5e7eb;
}
.auth-details__short {
    margin: 6px 0 8px 0;
    color: #1f2937;
    font-weight: 500;
}
.auth-details__pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    color: #4b5563;
}
.auth-details__hint {
    font-size: 14px;
    color: #6b7280;
}


/* --- OAuth error page screenshot-aligned tweaks --- */
.auth-page {
    min-height: 100vh;
    background: #f6f8fb;
    padding: 48px 16px;
}

/* Mint primary button as in screenshot */
.btn-mint {
    background: #028aec;
    color: #fff;
    border: 1px solid #028aec;
}
.btn-mint:hover,
.btn-mint:focus {
    background: #0275d8;
    border-color: #0275d8;
    box-shadow: 0 0 0 3px rgba(2, 138, 236, 0.25);
}

/* Details panel block */
.details-panel {
    margin-top: 18px;
    padding: 24px; /* p-6 */
    border: 1px solid #e5e7eb; /* slate-200 */
    background: #f8fafc; /* slate-50 */
    border-radius: 12px; /* rounded-lg */
}
.details-title {
    font-size: 14px; /* text-sm */
    font-weight: 600; /* font-semibold */
    color: #0f172a; /* slate-900 */
    letter-spacing: 0.06em; /* tracking-wide */
    text-transform: uppercase;
    margin-bottom: 8px; /* mb-2 */
    margin-top: 0;
}
.details-text {
    font-size: 14px; /* text-sm */
    color: #475569; /* slate-600 */
    line-height: 1.625; /* leading-relaxed */
    margin: 0 0 10px 0;
}
.details-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}
.details-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.details-label {
    font-size: 12px;
    color: #6b7280;
}
.code-chip {
    display: inline-block;
    padding: 4px 8px; /* px-2 py-1 */
    border-radius: 6px;
    background: #e5e7eb; /* slate-200 */
    color: #334155; /* slate-700 */
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/* OAuth error page: button spec (typography + size) */
.auth-actions .btn {
    /* Typography */
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 15px;
    leading-trim: none; /* experimental */
    line-height: 100%;
    letter-spacing: 0;

    /* Size and shape */
    width: 100%;
    max-width: 448px;
    height: 35px;
    padding: 6px 16px;
    border-radius: 12px;
    border-width: 1px;
    gap: 8px; /* spacing between icon and label */
    opacity: 1;
}

/* Neutralize inline margin on the icon span to rely on flex gap */
.auth-actions .btn > span[aria-hidden="true"] {
    margin-right: 0 !important;
}


/* OAuth error page: scoped variants for primary and outlined buttons */
.auth-actions .btn-mint {
    background: #028AEC;
    border: 1px solid #077CD0;
    color: #ffffff;
}
.auth-actions .btn-mint:hover,
.auth-actions .btn-mint:focus {
    background: #028AEC;
    border-color: #077CD0;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 138, 236, 0.25);
}

.auth-actions .btn-outline {
    background: #ffffff;
    color: #0b2a3a;
    border: 1px solid #6B7780;
}
.auth-actions .btn-outline:hover,
.auth-actions .btn-outline:focus {
    background: #f6f8fa;
    border-color: #6B7780;
    color: #0b2a3a;
    box-shadow: 0 0 0 3px rgba(2, 138, 236, 0.15);
}
