*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #f5f7fa 0%, #dfe7f1 100%);
    color: #1b1f28;
    overflow-y: auto;
}

.browser-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 40px 80px rgba(12, 36, 66, 0.18);
    overflow: visible;
}

.browser-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: #f2f3f5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.toolbar-buttons {
    display: flex;
    gap: 8px;
}

.ctrl {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.ctrl-red {
    background: #ff605c;
}

.ctrl-amber {
    background: #ffbd44;
}

.ctrl-green {
    background: #00ca4e;
}

.toolbar-address {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: #39414a;
    position: relative;
}

.toolbar-favicon {
    width: 18px;
    height: 18px;
}

.address-protocol {
    font-weight: 600;
}

#lock-indicator {
    margin-left: auto;
    border: none;
    background: none;
    padding: 0;
    font-size: 16px;
    cursor: pointer;
    color: #a5a9b5;
}

.address-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(23, 36, 59, 0.16);
    box-shadow: 0 10px 30px rgba(20, 27, 40, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12px;
    color: #2f3745;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 240px;
    z-index: 40;
}

.address-tooltip strong {
    color: #2f3745;
    font-weight: 700;
}

.address-status {
    font-size: 12px;
    color: #bb3d3d;
    font-weight: 600;
    position: relative;
    cursor: help;
}

.toolbar-actions {
    display: flex;
    gap: 12px;
    font-size: 18px;
    color: #6f7785;
}

.browser-content {
    flex: 1;
    padding: clamp(24px, 6vh, 40px) clamp(24px, 6vw, 56px);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.92), rgba(227, 241, 252, 0.92));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-page {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 252, 0.96) 100%);
    border-radius: 18px;
    box-shadow: 0 16px 60px rgba(14, 44, 84, 0.18);
    padding: clamp(22px, 4vh, 40px) clamp(22px, 5vw, 48px);
    position: relative;
    overflow: hidden;
}

.bt-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 4vw, 48px);
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(11, 95, 165, 0.16);
}

.bt24-logo {
    display: flex;
    align-items: center;
}

.bt24-logo-img {
    max-height: 68px;
    width: auto;
}

.bt-copy {
    flex: 1;
    min-width: 220px;
}

.bt-heading {
    margin: 0;
    font-size: clamp(22px, 3vw, 32px);
    color: #0e5fa5;
}

.bt-subheading {
    margin: 6px 0 0;
    color: #4f5a6d;
    font-size: clamp(14px, 2vw, 18px);
}

.support-chip {
    background: rgba(255, 209, 0, 0.15);
    color: #945500;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 209, 0, 0.4);
}

.page-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(18px, 3vw, 36px);
    margin-top: clamp(22px, 5vh, 36px);
}

.hero-panel {
    background: linear-gradient(160deg, rgba(14, 95, 165, 0.08), rgba(255, 255, 255, 0));
    border: 1px solid rgba(14, 95, 165, 0.08);
    border-radius: 16px;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: inset 0 1px 12px rgba(14, 95, 165, 0.12);
}

.hero-panel h2 {
    margin-top: 0;
    font-size: clamp(20px, 3vw, 26px);
    color: #0e5fa5;
}

.hero-panel p {
    color: #4f5a6d;
    line-height: 1.6;
    margin-bottom: 18px;
}

.benefits-list {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #2f3a4b;
    line-height: 1.6;
}

.hero-footnote {
    font-size: 12px;
    color: #6a7284;
    margin-top: 12px;
}

.login-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 45px rgba(11, 95, 165, 0.18);
    padding: clamp(24px, 4vw, 38px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.login-header h2 {
    margin: 0;
    font-size: clamp(20px, 2.8vw, 26px);
    color: #0e5fa5;
}

.login-badge {
    background: #e1eef9;
    color: #0e5fa5;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

label {
    font-weight: 600;
    font-size: 13px;
    color: #424c5b;
    display: block;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(15, 59, 104, 0.18);
    background: #f9fbff;
    font-size: 14px;
    color: #1b1f28;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #0e5fa5;
    box-shadow: 0 0 0 3px rgba(14, 95, 165, 0.16);
}

.inline-field {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.inline-field label {
    flex: 0 0 auto;
}

.field-note {
    font-size: 12px;
    color: #a96500;
    font-style: italic;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #444c58;
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #0e5fa5;
}

.link {
    font-size: 13px;
    color: #0e5fa5;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(140deg, #0e5fa5, #1a7fd3);
    color: #ffffff;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(14, 95, 165, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(14, 95, 165, 0.28);
}

.login-footer {
    font-size: 12px;
    color: #5d6575;
    display: flex;
    flex-direction: column;
    gap: 10px;
    line-height: 1.6;
}

.trust-copy {
    font-weight: 600;
    color: #0e5fa5;
}

.disclaimer a {
    color: #0e5fa5;
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

.address-tooltip.certificate-tooltip {
    width: 260px;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.45;
}

.address-tooltip.certificate-tooltip .tooltip-section {
    padding-top: 6px;
    border-top: 1px solid rgba(23, 36, 59, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address-tooltip.certificate-tooltip .tooltip-section:first-of-type {
    padding-top: 0;
    border-top: none;
}

.address-tooltip.certificate-tooltip .tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #2f3745;
}

.address-tooltip.certificate-tooltip .tooltip-label {
    color: #5e6675;
    font-weight: 600;
}
.hint-layer {
    position: fixed;
    bottom: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.hint-toggle {
    border: 1px solid rgba(14, 95, 165, 0.6);
    background: rgba(255, 255, 255, 0.95);
    color: #0e5fa5;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(14, 95, 165, 0.15);
}

.hint-list {
    margin: 0;
    padding: 12px 16px;
    list-style: disc;
    background: rgba(32, 40, 64, 0.94);
    color: #f5f7fa;
    border-radius: 12px;
    display: none;
    max-width: 260px;
    font-size: 13px;
    line-height: 1.5;
}

.hint-list.show {
    display: block;
}

.hint-list li + li {
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        order: 2;
    }

    .login-card {
        order: 1;
    }
}

@media (max-width: 720px) {
    .browser-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .toolbar-address {
        order: 3;
        width: 100%;
    }

    .browser-content {
        padding: 24px 18px 36px;
    }

    .fake-page {
        border-radius: 12px;
        padding: 20px;
    }

    .bt-banner {
        flex-direction: column;
        align-items: flex-start;
    }

}

