@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-a: #14333d;
    --bg-b: #244a56;
    --bg-c: #315e6b;

    --panel-main: rgba(66, 94, 105, 0.88);
    --panel-side: rgba(64, 92, 104, 0.90);

    --card: rgba(55, 82, 94, 0.92);
    --card-strong: rgba(50, 76, 88, 0.94);

    --field: rgba(100, 123, 133, 0.88);
    --field-dark: rgba(74, 99, 110, 0.94);

    --border: rgba(255, 255, 255, 0.14);
    --border-soft: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --text: #ffffff;
    --text-soft: #dce7eb;
    --text-muted: #b9c8ce;

    --green: #66ffcc;
    --green-dark: #318644;
    --green-hover: #9ea1a0;
    --blue: #5fd9ff;

    --danger: #ff5f7a;
    --warning: #ffc857;

    --tech-line: rgba(102, 255, 204, 0.60);
    --tech-line-soft: rgba(255, 255, 255, 0.18);
    --tech-line-dim: rgba(102, 255, 204, 0.28);

    --shadow-topbar: 5px 5px 0 rgba(0, 0, 0, 0.16);
    --shadow-panel: 6px 6px 0 rgba(0, 0, 0, 0.18);
    --shadow-card: 5px 5px 0 rgba(0, 0, 0, 0.21);
    --shadow-small: 3px 3px 0 rgba(0, 0, 0, 0.18);
    --shadow-button: 3px 3px 0 rgba(0, 0, 0, 0.22);
}

html {
    min-height: 100%;
    text-transform: uppercase;
}

body,
input,
button,
a {
    font-family: 'Oxanium', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0.045em;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        linear-gradient(rgba(10, 28, 34, 0.58), rgba(10, 28, 34, 0.58)),
        url('https://mydroidbase.com/uploads/backgrounds/bg-1.png') center center / cover no-repeat fixed,
        linear-gradient(135deg, var(--bg-a), var(--bg-b), var(--bg-c));
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.5px),
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 120px 120px, 80px 80px, 80px 80px;
    background-position: 20px 30px, 0 0, 0 0;
    opacity: 0.22;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025), transparent 35%);
    opacity: 0.35;
}

a {
    color: inherit;
}

button,
input,
a {
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
}

.page,
.shell {
    position: relative;
    z-index: 1;
}

/* =========================
   PORTAIL GLOBAL
========================= */

.shell {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 54px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
    padding: 18px 20px;
    background: rgba(63, 89, 99, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0;
    box-shadow: var(--shadow-topbar);
    animation: fadeIn 0.65s ease-out;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 0;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #5fd9ff, #66ffcc 52%, #7b8cff);
    box-shadow: var(--shadow-small);
    filter: saturate(0.95);
}

.brand-logo::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    transform: rotate(45deg);
}

.brand-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1;
    color: #ffffff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.14);
}

.brand-subtitle {
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.075em;
    margin-top: 4px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   CONTOURS TECHNO
========================= */

.topbar::after,
.welcome::after,
.profile-card::after,
.server-card::after {
    content: "";
    position: absolute;
    inset: 7px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.95;
    background:
        linear-gradient(var(--tech-line), var(--tech-line)) left top / 20px 1px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) left top / 1px 20px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) right top / 20px 1px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) right top / 1px 20px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) left bottom / 20px 1px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) left bottom / 1px 20px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) right bottom / 20px 1px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) right bottom / 1px 20px no-repeat,
        linear-gradient(var(--tech-line-soft), var(--tech-line-soft)) calc(50% - 20px) top / 40px 1px no-repeat,
        linear-gradient(var(--tech-line-soft), var(--tech-line-soft)) calc(50% - 20px) bottom / 40px 1px no-repeat,
        linear-gradient(var(--tech-line-dim), var(--tech-line-dim)) left 28px top 0 / 16px 1px no-repeat,
        linear-gradient(var(--tech-line-dim), var(--tech-line-dim)) right 28px bottom 0 / 16px 1px no-repeat,
        linear-gradient(var(--tech-line-dim), var(--tech-line-dim)) left 0 top 28px / 1px 16px no-repeat,
        linear-gradient(var(--tech-line-dim), var(--tech-line-dim)) right 0 bottom 28px / 1px 16px no-repeat;
}

/* =========================
   LANGUES
========================= */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-switcher a {
    min-width: 44px;
    height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.105em;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
    transition: 0.2s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: #0f2027;
    background: var(--green);
    border-color: rgba(102, 255, 204, 0.60);
}

.index-lang {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 5;
}

/* =========================
   BOUTONS
========================= */

.logout,
.enter,
.submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fcfcfc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.075em;
    border-radius: 0;
    background-color: var(--green-dark);
    border: 1px solid rgba(0, 0, 0, 0.38);
    box-shadow: var(--shadow-button);
    transition: 0.2s ease;
}

.logout {
    min-height: 38px;
    padding: 0 18px;
}

.logout:hover,
.enter:hover,
.submit:hover {
    background-color: var(--green-hover);
    color: #ffffff;
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.20);
}

/* =========================
   LAYOUT PRINCIPAL
========================= */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: stretch;
}

.welcome,
.profile-card {
    position: relative;
    background: rgba(66, 94, 105, 0.84);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.012)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: auto, 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0;
    box-shadow: var(--shadow-panel);
    color: #ffffff;
}

.welcome {
    min-height: 515px;
    padding: 30px;
    overflow: hidden;
    animation: fadeIn 0.75s ease-out;
}

.welcome-content {
    position: relative;
    z-index: 3;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    margin-bottom: 20px;
    border-radius: 0;
    color: #0f2027;
    background: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.095em;
    box-shadow: var(--shadow-small);
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f2027;
    box-shadow: none;
}

.welcome h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: #ffffff;
}

.welcome p {
    margin: 16px 0 0;
    max-width: 720px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.65;
    text-transform: none;
}

/* =========================
   PROFIL
========================= */

.profile-card {
    min-height: 515px;
    padding: 24px;
    overflow: hidden;
    animation: fadeIn 0.85s ease-out;
}

.profile-compact {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.avatar {
    position: relative;
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    border-radius: 0;
    background: linear-gradient(135deg, #5fd9ff, #66ffcc 52%, #7b8cff);
    box-shadow: var(--shadow-small);
    filter: saturate(0.95);
}

.avatar::after {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    transform: rotate(45deg);
}

.profile-card h2,
.account-level strong {
    position: relative;
    z-index: 3;
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1.1;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.14);
}

.profile-card .email,
.account-level span,
.profile-card .profile-status {
    display: none;
}

/* =========================
   STATS / BLOCS INTERNES
========================= */

.stats {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

.stats-single {
    grid-template-columns: 1fr;
}

.stat,
.meta,
.progress-box {
    position: relative;
    border-radius: 0;
    background: rgba(100, 123, 133, 0.86);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.010) 1px, transparent 1px);
    background-size: auto, 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

.stat {
    padding: 14px;
}

.meta {
    padding: 14px;
}

.progress-box {
    padding: 14px;
    margin-bottom: 16px;
}

.stat::before,
.meta::before,
.progress-box::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    width: 44px;
    height: 2px;
    background: var(--green);
    box-shadow: none;
    z-index: 3;
}

.stat::after,
.meta::after,
.progress-box::after {
    content: "";
    position: absolute;
    inset: 5px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.95;
    background:
        linear-gradient(var(--tech-line), var(--tech-line)) left top / 12px 1px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) left top / 1px 12px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) right bottom / 12px 1px no-repeat,
        linear-gradient(var(--tech-line), var(--tech-line)) right bottom / 1px 12px no-repeat,
        linear-gradient(var(--tech-line-soft), var(--tech-line-soft)) calc(50% - 10px) top / 20px 1px no-repeat,
        linear-gradient(var(--tech-line-dim), var(--tech-line-dim)) left 18px bottom 0 / 10px 1px no-repeat;
}

.stat strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.stat span,
.meta span,
.progress-box span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.105em;
}

.profile-card .stats .stat:nth-child(2) {
    display: none;
}

/* =========================
   SECTIONS
========================= */

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin: 30px 0 17px;
}

.section-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 5px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   SERVEURS
========================= */

.servers {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(1, minmax(320px, 430px));
    gap: 19px;
}

.server-card {
    position: relative;
    padding: 20px;
    overflow: hidden;
    transition: 0.2s ease;
    background: rgba(50, 76, 88, 0.90);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.012)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: auto, 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0;
    box-shadow: var(--shadow-card);
    color: #ffffff;
}

.server-card:hover {
    background-color: rgba(55, 82, 94, 0.94);
    border-color: rgba(255, 255, 255, 0.20);
    transform: translate(1px, 1px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.19);
}

.server-inner {
    position: relative;
    z-index: 3;
}

.server-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.server-icon {
    position: relative;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 0;
    background: linear-gradient(135deg, #5fd9ff, #66ffcc 52%, #7b8cff);
    box-shadow: var(--shadow-small);
    filter: saturate(0.95);
}

.server-icon::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    transform: rotate(45deg);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.105em;
    background: rgba(74, 99, 110, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
}

.status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status.online {
    color: #baffee;
}

.status.online::before {
    background: var(--green);
}

.status.maintenance {
    color: #ffe7ad;
}

.status.maintenance::before {
    background: var(--warning);
}

.status.offline {
    color: #ffd3dc;
}

.status.offline::before {
    background: var(--danger);
}

.status.soon {
    color: #d8f7ff;
}

.status.soon::before {
    background: var(--blue);
}

.server-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1.1;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.14);
}

.server-desc {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.65;
    min-height: 45px;
    margin: 9px 0 18px;
    text-transform: none;
}

.server-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.meta strong,
.progress-box strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* =========================
   ENTRER SERVEUR
========================= */

.enter {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
}

.enter.disabled {
    pointer-events: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

/* =========================
   PAGE LOGIN SI UTILISÉE
========================= */

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
    padding: 70px 0 40px;
}

.hero {
    position: relative;
    color: #ffffff;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 0;
    color: #0f2027;
    background: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.095em;
    box-shadow: var(--shadow-small);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f2027;
}

.hero h1,
h1 {
    margin: 26px 0 18px;
    max-width: 760px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.015em;
    font-weight: 800;
    color: #ffffff;
}

.gradient-text {
    color: var(--green);
}

.hero p {
    max-width: 660px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.feature {
    min-height: 130px;
    padding: 20px;
    border-radius: 0;
    background: rgba(55, 82, 94, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: var(--shadow-card);
}

.feature strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.feature span {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    justify-self: center;
    background: rgba(66, 94, 105, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0;
    padding: 28px;
    color: #ffffff;
    box-shadow: var(--shadow-panel);
    animation: fadeIn 0.75s ease-out;
}

.auth-inner {
    width: 100%;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.tab-button {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    cursor: pointer;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.075em;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.16);
    transition: 0.2s ease;
}

.tab-button:hover,
.tab-button.active {
    color: #0f2027;
    background: var(--green);
}

.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

.field {
    margin-bottom: 15px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.105em;
}

.field input {
    width: 100%;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.14);
    transition: background 0.2s ease;
}

.field input::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.field input:focus {
    background: rgba(255, 255, 255, 0.24);
}

.submit {
    width: 100%;
    padding: 13px;
    cursor: pointer;
}

.message {
    padding: 13px 14px;
    margin-bottom: 14px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-small);
}

.message.error {
    background: rgba(255, 95, 122, 0.14);
    border: 1px solid rgba(255, 95, 122, 0.26);
    color: #ffd6de;
}

.message.success {
    background: rgba(102, 255, 204, 0.13);
    border: 1px solid rgba(102, 255, 204, 0.26);
    color: #ccfff1;
}

.small-note {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
    line-height: 1.55;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1060px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .profile-card,
    .welcome {
        min-height: auto;
    }

    .servers {
        grid-template-columns: repeat(1, minmax(280px, 430px));
    }

    .page {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 760px) {
    body {
        overflow-y: auto;
        background-attachment: scroll;
    }

    .shell {
        width: min(100% - 24px, 1220px);
        padding-top: 14px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .top-actions .lang-switcher {
        width: 100%;
    }

    .top-actions .lang-switcher a {
        flex: 1;
    }

    .logout {
        width: 100%;
    }

    .welcome,
    .profile-card,
    .server-card {
        padding: 22px;
    }

    .section-title {
        display: block;
    }

    .server-meta {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .page {
        width: min(100% - 24px, 1180px);
        padding: 90px 0 30px;
    }

    .hero {
        text-align: center;
    }

    .hero p {
        margin: 0 auto;
    }

    .auth-card {
        max-width: 100%;
    }

    .index-lang {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 14px;
        justify-content: center;
    }

    .index-lang a {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .brand-title {
        font-size: 21px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .avatar {
        width: 68px;
        height: 68px;
    }

    .account-level strong {
        font-size: 22px;
    }

    .server-card h3 {
        font-size: 21px;
    }

    .welcome h1,
    .hero h1,
    h1 {
        font-size: clamp(32px, 12vw, 56px);
    }
}

/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}