:root {
    --brand: #fe6081;
    --brand-dark: #e5496d;
    --bg: #080a12;
    --panel: rgba(17, 21, 34, .88);
    --panel-solid: #111522;
    --text: #ffffff;
    --muted: #a8adbd;
    --soft: #d8dbe7;
    --line: rgba(255, 255, 255, .11);
    --field: rgba(255, 255, 255, .075);
    --shadow: 0 24px 80px rgba(0, 0, 0, .42);
    --radius: 24px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button,input {
    font: inherit
}

button {
    -webkit-tap-highlight-color: transparent
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(141deg,#fe60811a,#020203f0 24%,#020203)
}

.auth-page {
    width: min(1120px,calc(100% - 28px));
    margin: 0 auto;
    padding: 26px 26px 0;
}

.auth-shell {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.intro-panel {
    padding: 4px 2px 0
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -.03em
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,var(--brand),#ff8ca5);
    color: #fff;
    box-shadow: 0 12px 28px #fe608152
}

.brand-text {
    font-size: 24px
}

.intro-copy {
    margin-top: 24px
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(254,96,129,.3);
    border-radius: 999px;
    color: #ffd7df;
    background: #fe60811a;
    font-size: 12px;
    font-weight: 800
}

.intro-copy h1 {
    margin: 14px 0 10px;
    max-width: 560px;
    font-size: 40px;
    line-height: .98;
    letter-spacing: -.065em
}

.intro-copy p {
    margin: 0;
    max-width: 540px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65
}

.mini-stats {
    display: none
}



.auth-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px
}

.small-title {
    margin: 0 0 4px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em
}

.auth-card h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -.045em
}

.terms-link {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: .5rem;
    color: var(--soft);
    background: #ffffff0d;
    font-size: 12px;
    font-weight: 800
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 20px;
}

.auth-tab {
    min-height: 44px;
    padding-bottom: 20px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 600
}

.auth-tab.active {
    color: #fff;
    border-bottom: 2px solid #fe6081;
    padding-bottom: 20px
}

.auth-form {
    display: none
}

.auth-form.active {
    display: grid;
    gap: 24px;
    width: 100%;
}

.field-group>span,.check-label span {
    display: block;
    margin-bottom: 8px;
    color: #eceef7;
    font-size: 13px;
    font-weight: 800
}

input[type=text],input[type=email],input[type=password] {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid #38383859;
    border-radius: .5rem;
    color: #fff;
    background: #6969691c;
    outline: none
}

input:focus {
    border-color: #fe6081e0;
    box-shadow: 0 0 0 4px #fe608121
}

input::placeholder {
    color: #73798d
}

.password-field {
    position: relative
}

.password-field input {
    padding-right: 74px
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-height: 38px;
    padding: 0 11px;
    border: 0;
    border-radius: .5rem;
    color: #fff;
    background: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px
}

.form-options a,.terms-check a,.switch-note button,.legal-card a {
    color: var(--brand);
    font-weight: 900
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45
}

.check-label input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex: 0 0 16px;
    accent-color: var(--brand)
}

.check-label span {
    margin: 0;
    color: var(--muted);
    font-weight: 650
}

.btn {
    min-height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: transform .18s ease,box-shadow .18s ease
}

.btn:active {
    transform: scale(.985)
}

.btn-primary {
    color: #fff;
    background: #fe6081
}

.btn-full {
    width: 100%
}

.switch-note {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 13px
}

.switch-note button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer
}

.simple-section {
    margin-top: 50px
}

.simple-section h2 {
    margin: 0 0 16px;
    font-size: 24px;
    letter-spacing: -.035em
}

.simple-grid {
    display: grid;
    gap: 12px
}

.simple-grid article {
    padding: 18px;
    border: 1px solid rgb(144 144 144 / 11%);
    border-radius: .5rem;
    background: #181a20
}

.simple-grid span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 14px;
    color: var(--brand);
    background: #fe608121;
    font-weight: 900
}

.simple-grid h3 {
    margin: 0 0 6px;
    font-size: 17px
}

.simple-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6
}

.site-footer {
    width: min(1120px,calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px
}

.site-footer p {
    margin: 0
}

.site-footer div {
    display: flex;
    gap: 16px
}

.site-footer a:hover {
    color: #fff
}

.site-header {
    width: min(1120px,calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800
}

.nav-links a:hover {
    color: #fff
}

.legal-wrap {
    width: min(860px,calc(100% - 28px));
    margin: 36px auto 0
}

.legal-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(32px,9vw,54px);
    line-height: 1;
    letter-spacing: -.06em
}

.legal-hero p {
    margin: 0;
    color: var(--muted)
}

.legal-card {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: var(--shadow)
}

.legal-card h2 {
    margin: 28px 0 8px;
    font-size: 19px;
    letter-spacing: -.025em
}

.legal-card h2:first-child {
    margin-top: 0
}

.legal-card p,.legal-card li {
    color: #c8ccdb;
    line-height: 1.75;
    font-size: 14px
}

.legal-card ul {
    padding-left: 20px
}

.legal-note {
    margin-top: 26px;
    padding: 14px;
    border: 1px solid rgba(254,96,129,.3);
    border-radius: 18px;
    color: #ffd5de;
    background: #fe608114;
    line-height: 1.6;
    font-size: 13px
}
  .simple-section {display:none}


@media(max-width: 420px) {

  
    .auth-page,.site-footer,.site-header,.legal-wrap {
        width:min(100% - 20px,1120px)
    }

    .intro-copy h1 {
        font-size: 34px
    }

    .auth-card {
        border-radius: .4rem
    }

    .auth-card h2 {
        font-size: 28px
    }

    input[type=text],input[type=email],input[type=password],.btn {
        height: 52px;
        min-height: 52px
    }

    .nav-links {
        gap: 12px
    }

    .nav-links a[href="mailto:support@vidoy.com"] {
        display: none
    }
}
@media(max-width:760px) {

    aside.auth-card {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;     /* center vertical */
    justify-content: center; /* center horizontal */
    flex-wrap: wrap;
    align-content: center;
}
}

@media(min-width: 760px) {
  .simple-section {display:block!important}
.auth-card {
    width: 100%;
    padding: 18px;
    border: 1px solid rgb(255 255 255 / 4%);
    border-radius: .5rem;
    background: #191a20;
    backdrop-filter: blur(20px)
}
    
    .auth-card {
        margin-top:67px
    }

    .intro-panel {
        display: block!important
    }

    ;.auth-page {
        padding-top: 40px
    }

    .auth-shell {
        display: grid;
        grid-template-columns: minmax(0,1fr) 430px;
        align-items: start;
        gap: 44px;
        justify-content: end
    }

    .intro-panel {
        padding-top: 0
    }

    .intro-copy {
        margin-top: 46px;
        display: block!important
    }

    .intro-copy p {
        font-size: 17px
    }

    .auth-card {
        padding: 24px;
        border-radius: .5rem
    }

    .mini-stats {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        max-width: 560px;
        margin-top: 70px;
        border: 1px solid rgb(34 36 40);
        border-radius: .4rem;
        overflow: hidden;
        background: #181a20
    }

    .mini-stats div {
        padding: 18px;
        border-right: 1px solid rgb(34 36 40)
    }

    .mini-stats div:last-child {
        border-right: 0
    }

    .mini-stats strong {
        display: block;
        font-size: 20px
    }

    .mini-stats span {
        display: block;
        margin-top: 4px;
        color: var(--muted);
        font-size: 13px
    }

    .simple-grid {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

    .legal-card {
        padding: 34px
    }
}
