/* ========================================
   ARCHIVE HEADER
======================================== */

.archive-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 34px;

    z-index: 100;

    background:
        rgba(10, 10, 10, 0.48);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
}


/* ========================================
   BRAND
======================================== */

.archive-brand {

    display: flex;

    align-items: center;

    gap: 12px;

    user-select: none;
}


.archive-logo-mark {

    width: 37px;
    height: 37px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.14);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.065);

    color: #eeeeee;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: -0.5px;

    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.22);
}


.archive-brand-text {

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.archive-title {

    color: #eeeeee;

    font-size: 16px;

    font-weight: 500;

    letter-spacing: -0.25px;

    line-height: 1;
}


.archive-subtitle {

    color:
        rgba(255, 255, 255, 0.32);

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 2.2px;

    line-height: 1;
}


/* ========================================
   AUTH BUTTON
======================================== */

.auth-button {

    height: 38px;

    padding:
        0 17px;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.055);

    color: #aaa;

    font-size: 12px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.auth-button:hover {

    background:
        rgba(255, 255, 255, 0.10);

    border-color:
        rgba(255, 255, 255, 0.17);

    color: #eee;

    transform:
        translateY(-1px);
}


/* ========================================
   OVERLAY
======================================== */

.auth-overlay {

    position: fixed;

    inset: 0;

    z-index: 500;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.58);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.auth-overlay.open {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* ========================================
   MODAL
======================================== */

.auth-modal {

    position: relative;

    width: 380px;

    max-width: 100%;

    padding: 28px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 16px;

    background:
        rgba(17, 17, 17, 0.82);

    backdrop-filter:
        blur(24px);

    -webkit-backdrop-filter:
        blur(24px);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55);

    transform:
        translateY(12px)
        scale(0.98);

    transition:
        transform 0.2s ease;
}

.auth-modal.success-state .auth-form-state {
    display: none;
}


.auth-modal.success-state .auth-success {
    display: flex;
}

.auth-overlay.open .auth-modal {

    transform:
        translateY(0)
        scale(1);
}


/* ========================================
   CLOSE
======================================== */

.auth-close {

    position: absolute;

    top: 12px;
    right: 13px;

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #666;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease;
}


.auth-close:hover {
    color: #eee;
}


/* ========================================
   TITLE
======================================== */

.auth-modal-title {

    color: #eee;

    font-size: 20px;

    font-weight: 500;

    letter-spacing: -0.4px;
}


.auth-modal-description {

    margin-top: 7px;

    color: #666;

    font-size: 12px;

    line-height: 1.5;
}


/* ========================================
   FIELDS
======================================== */

.auth-form-state {
    display: block;
}

.auth-field {

    margin-top: 22px;
}


.auth-field label {

    display: block;

    margin-bottom: 8px;

    color: #777;

    font-size: 11px;
}


.auth-field input {

    width: 100%;

    height: 46px;

    padding:
        0 14px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 9px;

    outline: none;

    background:
        rgba(10, 10, 10, 0.38);

    color: #eee;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.auth-field input::placeholder {
    color: #555;
}


.auth-field input:focus {

    border-color:
        rgba(255, 255, 255, 0.22);

    background:
        rgba(15, 15, 15, 0.58);
}


/* ========================================
   CODE FIELD
======================================== */

.code-field {
    display: none;
}


.code-field.visible {
    display: block;
}


/* ========================================
   SUBMIT
======================================== */

.auth-submit-button {

    width: 100%;

    height: 46px;

    margin-top: 20px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #eee;

    font-size: 12px;

    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}


.auth-submit-button:disabled {

    opacity: 0.3;

    cursor: not-allowed;

    background:
        rgba(10, 10, 10, 0.45);
}


.auth-submit-button:not(:disabled):hover {

    background:
        rgba(255, 255, 255, 0.14);

    border-color:
        rgba(255, 255, 255, 0.20);

    transform:
        translateY(-1px);
}


/* ========================================
   STATUS
======================================== */

.auth-status {

    min-height: 18px;

    margin-top: 10px;

    color: #777;

    font-size: 11px;

    line-height: 1.4;

    text-align: center;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .archive-header {

        height: 68px;

        padding:
            0 20px;
    }


    .archive-logo-mark {

        width: 34px;
        height: 34px;

        border-radius: 9px;
    }


    .archive-title {
        font-size: 15px;
    }


    .archive-subtitle {

        font-size: 7px;

        letter-spacing: 1.8px;
    }


    .auth-button {

        height: 35px;

        padding:
            0 13px;

        font-size: 11px;
    }


    .auth-modal {
        padding: 24px;
    }

}

.auth-success[hidden] {
    display: none !important;
}


.auth-success {

    width: 100%;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding:
        16px 0 4px;
}


.auth-success.visible {

    display: flex;
}


.auth-success-icon {

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    color: #eee;

    font-size: 21px;
}

.auth-success-title {

    margin-top: 16px;

    color: #eee;

    font-size: 17px;

    font-weight: 500;

    letter-spacing: -0.2px;
}


.auth-success-text {

    max-width: 260px;

    margin-top: 7px;

    color: #666;

    font-size: 12px;

    line-height: 1.5;
}

/* ========================================
   ACCOUNT ACTIONS
======================================== */

.account-menu {

    width: 100%;

    margin-top: 22px;

    display: flex;

    flex-direction: column;

    gap: 6px;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);
}


.account-menu-item {

    width: 100%;

    height: 40px;

    padding:
        0 13px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.035);

    color: #888;

    font-family: inherit;

    font-size: 11px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}


.account-menu-item:hover {

    background:
        rgba(255, 255, 255, 0.075);

    border-color:
        rgba(255, 255, 255, 0.13);

    color: #eee;

    transform:
        translateY(-1px);
}

.archive-brand {
    cursor: pointer;
}


.account-menu-item:active {

    transform:
        translateY(0);
}

.account-menu.open {
    display: flex;
}

.account-menu.disabled {
    display: none;
}

.account-menu[hidden] {
    display: none !important;
}