/*
  Shamona Halab / ShamHash Auth UI
  Frontend only - no backend code.
  Upload this folder content inside:
  /home/u444965806/domains/cryptomining.my/public_html/shamhash
*/

:root {
    --bg-1: #132348;
    --bg-2: #1c2f5c;
    --bg-3: #142651;
    --bg-4: #0f1d3f;

    --field-bg: rgba(111, 129, 181, 0.255);
    --field-bg-focus: rgba(125, 146, 207, 0.36);
    --field-border: rgba(255, 255, 255, 0.025);

    --text-main: rgba(255, 255, 255, 0.96);
    --text-soft: rgba(255, 255, 255, 0.76);
    --text-place: rgba(255, 255, 255, 0.74);
    --blue-link: #5d95e6;

    --page-width: 430px;
    --side: clamp(24px, 7vw, 34px);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.auth-body {
    direction: rtl;
    min-height: 100vh;
    min-height: 100dvh;
    background: #071126;
    color: #ffffff;
    font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
    overflow-x: hidden;
}

.auth-shell {
    width: 100%;
    max-width: var(--page-width);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding-top: calc(env(safe-area-inset-top) + 18px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
    background:
        radial-gradient(circle at 115% 70%, rgba(86, 128, 231, 0.34) 0%, rgba(86, 128, 231, 0.15) 22%, transparent 43%),
        radial-gradient(circle at -12% 46%, rgba(255, 255, 255, 0.08) 0%, transparent 34%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 76%, var(--bg-4) 100%);
    box-shadow:
        inset 11px 0 24px rgba(255, 255, 255, 0.035),
        inset -14px 0 31px rgba(126, 166, 255, 0.17);
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.043), transparent 13%, transparent 87%, rgba(255, 255, 255, 0.058)),
        radial-gradient(ellipse at 50% -3%, rgba(255, 255, 255, 0.04), transparent 38%);
}

.auth-shell::after {
    content: "";
    position: absolute;
    right: -44px;
    top: 63%;
    width: 92px;
    height: 150px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.18));
    filter: blur(0.2px);
    opacity: 0.52;
    pointer-events: none;
    z-index: 0;
}

.auth-shell--scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.top-icon {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 21px);
    z-index: 5;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}

.top-icon--support {
    left: 23px;
}

.top-icon--support img {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.95;
}

.top-icon--back {
    right: 19px;
    font-size: 31px;
    font-weight: 300;
    transform: translateY(-2px);
}

.auth-brand {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-logo {
    width: clamp(104px, 28vw, 122px);
    height: auto;
    display: block;
    margin-top: 63px;
    filter: drop-shadow(0 10px 17px rgba(0, 0, 0, 0.2));
}

.auth-content {
    position: relative;
    z-index: 2;
    padding-inline: var(--side);
}

.auth-content--account {
    margin-top: 49px;
}

.auth-content--personal {
    margin-top: 34px;
}

.auth-content--otp {
    margin-top: 49px;
}

.auth-title {
    margin: 0 0 18px;
    color: var(--text-main);
    font-size: clamp(18px, 5.2vw, 21px);
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

.auth-subtitle {
    margin: -8px 0 20px;
    color: var(--text-soft);
    font-size: clamp(12px, 3.6vw, 13.5px);
    font-weight: 500;
    line-height: 1.8;
    text-align: right;
    white-space: normal;
}

.auth-form {
    width: 100%;
}

.auth-field {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.auth-control {
    width: 100%;
    height: 48px;
    display: block;
    border: 1px solid var(--field-border);
    border-radius: 5px;
    outline: none;
    background: var(--field-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    direction: rtl;
    padding: 0 50px 0 46px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.036),
        0 8px 18px rgba(0, 0, 0, 0.035);
    transition: background 0.18s ease, border-color 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.auth-control::placeholder {
    color: var(--text-place);
    opacity: 1;
}

.auth-control:focus {
    background: var(--field-bg-focus);
    border-color: rgba(122, 165, 255, 0.25);
}

.auth-select {
    color: var(--text-place);
    cursor: pointer;
}

.auth-select option {
    background: #172852;
    color: #ffffff;
}

.field-icon {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.73);
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
    font-weight: 400;
}

.field-icon--left {
    right: auto;
    left: 16px;
}

.icon-placeholder::before {
    content: attr(data-icon);
}

.select-arrow {
    position: absolute;
    top: 50%;
    left: 19px;
    transform: translateY(-50%);
    z-index: 2;
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.auth-bottom {
    position: absolute;
    z-index: 4;
    left: 26px;
    bottom: calc(env(safe-area-inset-bottom) + 19px);
    border: 0;
    background: transparent;
    color: var(--blue-link);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 0;
    cursor: pointer;
    text-decoration: none;
}

.auth-shell--scroll .auth-bottom {
    position: relative;
    left: auto;
    bottom: auto;
    display: block;
    width: max-content;
    margin-top: 18px;
    margin-left: 28px;
    margin-right: auto;
    margin-bottom: 8px;
}

.otp-boxes {
    display: flex;
    direction: ltr;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 2vw, 9px);
    margin-top: 17px;
}

.otp-input {
    width: clamp(39px, 12.5vw, 51px);
    height: 42px;
    border: 1px solid var(--field-border);
    border-radius: 7px;
    outline: none;
    background: rgba(114, 132, 183, 0.28);
    color: #ffffff;
    text-align: center;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 8px 18px rgba(0, 0, 0, 0.03);
}

.otp-input:focus {
    background: rgba(124, 145, 205, 0.35);
    border-color: rgba(122, 165, 255, 0.25);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.index-links {
    position: relative;
    z-index: 2;
    padding: 32px var(--side);
    display: grid;
    gap: 10px;
}

.index-links a {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: var(--field-bg);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14px;
}

@media (max-height: 650px) {
    .auth-logo {
        margin-top: 48px;
    }

    .auth-content--account,
    .auth-content--otp {
        margin-top: 36px;
    }

    .auth-content--personal {
        margin-top: 26px;
    }

    .auth-control {
        height: 45px;
    }
}

@media (max-width: 360px) {
    :root {
        --side: 22px;
    }

    .auth-logo {
        width: 102px;
    }

    .auth-title {
        font-size: 18px;
    }

    .auth-control {
        height: 45px;
        font-size: 12.5px;
        padding-right: 47px;
    }

    .otp-input {
        height: 39px;
        font-size: 18px;
    }
}
