/* =========================================================
   Website members: header Login button, Login / Sign up modal
   and the My Account page. The site is always dark.
========================================================= */

/* ---------- Header Login button (looks like the other top bar links) ---------- */
.account-login-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.topbar .account-login-btn i,
.topbar a.topbar-item i {
    margin-right: 0.4rem;
}

.main-navbar .account-login-btn,
.main-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.account-login-btn:hover,
.account-login-btn:focus-visible {
    color: #d5e7ed;
}


/* ---------- Modal ---------- */
.account-modal .modal-dialog {
    max-width: 460px;
}

.account-modal .modal-content {
    position: relative;
    overflow: hidden;
    padding: 34px 32px 28px;
    border: 1px solid #262626;
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(43, 179, 192, .18), transparent 45%),
        #111111;
    color: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.account-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.account-modal-head {
    margin-bottom: 22px;
    text-align: center;
}

.account-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #13606f 0%, #0e4552 60%, #082d36 100%);
    color: #d5e7ed;
    font-size: 26px;
    box-shadow: 0 10px 24px -8px rgba(43, 179, 192, .6);
}

.account-modal-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.account-modal-head p {
    margin: 0;
    color: #bdbdbd;
    font-size: 13px;
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 22px;
    padding: 4px;
    border-radius: 12px;
    background: #1a1a1a;
}

.account-tabs .nav-link {
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: #bdbdbd;
    font-size: 13px;
    font-weight: 700;
    transition: background .25s ease, color .25s ease;
}

.account-tabs .nav-link:hover {
    color: #ffffff;
}

.account-tabs .nav-link.active {
    background: #0e4552;
    color: #ffffff;
}


/* ---------- Forms (modal and account page) ---------- */
.account-form .form-label,
.account-card .form-label {
    margin-bottom: 6px;
    color: #d5e7ed;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.account-form .form-control,
.account-card .form-control {
    min-height: 44px;
    border-radius: 10px;
    font-size: 14px;
}

.account-form .form-control:focus,
.account-card .form-control:focus {
    border-color: #2bb3c0;
    box-shadow: 0 0 0 3px rgba(43, 179, 192, .2);
}

.account-form .form-check-label {
    color: #bdbdbd;
    font-size: 13px;
}

.account-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: #d5e7ed;
    color: #0e4552;
    font-size: 14px;
    font-weight: 800;
    transition: background .25s ease, transform .25s ease;
}

.account-form .account-submit {
    width: 100%;
}

.account-submit:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.account-submit:disabled {
    opacity: .75;
    transform: none;
}

.account-switch {
    margin: 16px 0 0;
    color: #9a9a9a;
    font-size: 13px;
    text-align: center;
}

.account-switch button {
    padding: 0;
    border: 0;
    background: none;
    color: #d5e7ed;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ---------- My Account page ---------- */
.account-section {
    padding: 60px 0 80px;
    background: #000000;
}

.account-alert {
    margin-bottom: 24px;
}

.account-card {
    padding: 30px;
    border: 1px solid #262626;
    border-radius: 18px;
    background: #111111;
    color: #ffffff;
}

.account-profile {
    height: 100%;
    text-align: center;
}

.account-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #13606f 0%, #0e4552 60%, #082d36 100%);
    border: 3px solid #d5e7ed;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
}

.account-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.account-email {
    margin: 0 0 22px;
    color: #bdbdbd;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.account-meta {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.account-meta li {
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #262626;
    font-size: 13px;
}

.account-meta i {
    grid-row: span 2;
    color: #2bb3c0;
    font-size: 16px;
}

.account-meta span {
    color: #9a9a9a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.account-meta strong {
    color: #ffffff;
    font-weight: 700;
}

.account-logout {
    width: 100%;
    padding: 11px 20px;
    border: 1px solid #444444;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.account-logout:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

.account-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.account-card-title i {
    color: #2bb3c0;
}

@media (max-width: 575px) {
    .account-modal .modal-content {
        padding: 28px 20px 22px;
    }

    .account-card {
        padding: 22px 18px;
    }
}
