﻿.tradia-auth {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(30px, 7vh, 65px) 12px 24px;
    box-sizing: border-box;
    background: white;
}

.tradia-auth-card {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    background: white;
    border: 1px solid #e2e7e9;
    border-radius: 6px;
    box-sizing: border-box;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}


.tradia-auth-heading {
    margin-bottom: 20px;
}

    .tradia-auth-heading h1 {
        font-size: 21px;
        font-weight: 600;
        margin: 0 0 6px;
        color: #263b43;
    }

    .tradia-auth-heading p {
        margin: 0;
        font-size: 14px;
        color: #75858b;
    }

/* Floating label fields */


.tradia-floating-field {
    position: relative;
    margin-top: 14px;
}

.tradia-floating-field input.tradia-auth-input {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 36px;
    border: 1px solid #aebdc3;
    border-radius: 4px;
    padding: 8px 10px 5px;
    background: white;
    color: #263238;
    font-size: 13px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.tradia-floating-field label {
    position: absolute;
    left: 10px;
    top: 18px;
    transform: translateY(-50%);
    padding: 0 3px;
    font-size: 13px;
    color: #71858d;
    background: white;
    pointer-events: none;
    transition: top .15s, font-size .15s, color .15s;
}

.tradia-floating-field:focus-within label,
.tradia-floating-field:has(input:not(:placeholder-shown)) label,
.tradia-floating-field:has(input:autofill) label,
.tradia-floating-field:has(input:-webkit-autofill) label {
    top: 0;
    font-size: 11px;
    color: #44616a;
}

.tradia-floating-field input.tradia-auth-input:-webkit-autofill,
.tradia-floating-field input.tradia-auth-input:-webkit-autofill:hover,
.tradia-floating-field input.tradia-auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #263238;
    caret-color: #263238;
}


    .tradia-floating-field input.tradia-auth-input:focus {
        border-color: #44616a;
        box-shadow: 0 0 0 2px rgba(68,97,106,.12);
    }

    .tradia-floating-field input.tradia-auth-input.invalid {
        border-color: #ed1c2b;
    }

/* Validation */

.tradia-auth .tradia-validation,
.tradia-auth .validation-message {
    color: #c51d2a;
    font-size: 12px;
    margin-top: 5px;
}

/* Options */

.tradia-auth-options {
    margin: 15px 0;
    font-size: 13px;
    color: #52666e;
}

    .tradia-auth-options label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .tradia-auth-options input {
        accent-color: #44616a;
    }

/* Submit button */

.tradia-auth-submit {
    width: 100%;
    height: 38px;
    background: #44616a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

    .tradia-auth-submit:hover {
        background: #354f58;
    }

    .tradia-auth-submit:focus-visible {
        outline: 2px solid #ed1c2b;
        outline-offset: 3px;
    }

.tradia-auth-footer {
    border-top: 1px solid #e5eaec;
    margin-top: 20px;
    padding-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #82949c;
}

@media (max-width: 480px) {
    .tradia-auth-card {
        padding: 24px 18px;
    }
}


.tradia-auth-description {
    font-size: 12px;
    line-height: 1.5;
    color: #52666e;
    margin: 0 0 18px;
}

.tradia-auth-footer a {
    display: block;
    margin-top: 7px;
    color: #44616a;
    text-decoration: none;
    font-weight: 500;
}

.tradia-auth-footer a:hover {
    text-decoration: underline;
}
#two-factor-code {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}
.tradia-recovery-submit {
    margin-top: 18px;
}

/* Reset password */

.tradia-reset-password-submit {
    margin-top: 20px;
}

/* Forgot password */

.tradia-forgot-submit {
    margin-top: 20px;
}

/* Confirmation pages */

.tradia-auth-card > .tradia-auth-description {
    margin-bottom: 14px;
}

.tradia-auth-card > .tradia-auth-description:last-of-type {
    margin-bottom: 0;
}

.tradia-confirm-email-address {
    font-size: 14px;
    font-weight: 600;
    color: #44616a;
    text-align: center;
    overflow-wrap: anywhere;
    margin: 14px 0 20px;
}

.tradia-auth-submit.tradia-invite-submit {
    margin-top: 16px;
}


/* Pending administrator authenticator enrollment */

.tradia-pending-auth-qr {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.tradia-pending-auth-qr svg {
    max-width: 100%;
    background: white;
}

.tradia-pending-auth-key {
    margin: 12px 0 20px;
    padding: 10px;
    background: #f2f5f6;
    border: 1px solid #dce2e5;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 13px;
    text-align: center;
    overflow-wrap: anywhere;
}

.tradia-auth-submit.tradia-pending-auth-submit {
    margin-top: 16px;
}

.tradia-pending-recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 16px 0;
    padding: 14px;
    background: #f2f5f6;
    border: 1px solid #dce2e5;
    border-radius: 4px;
    font-family: Consolas, monospace;
    font-size: 12px;
    text-align: center;
    overflow-wrap: anywhere;
}
