@font-face {
    font-family: IranSans;
    src: url('IRANSansX-Regular.ttf');
}

@font-face {
    font-family: IranSans;
    src: url('IRANSansX-Bold.ttf');
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #100b18;
    color: #f8f4ff;
    font: 1rem/1.7 IranSans,Tahoma,sans-serif;
}

main {
    width: min(100%,66rem);
    min-height: 36rem;
    display: flex;
    flex-direction: row-reverse;
    background: #191120;
    border: 1px solid #493254;
    border-radius: 1.2rem;
    overflow: hidden;
}

.art {
    flex: 1;
    background: linear-gradient(0deg,#26133399,transparent 60%),url('login-operator.jpg') center/cover;
}

section {
    flex: 1;
    min-width: 0;
    padding: clamp(1.5rem,4vw,3.75rem);
    align-self: center;
}

.brand {
    object-fit: contain;
}

h1 {
    line-height: 1.4;
    margin: 1rem 0 .4rem;
    font-size: clamp(1.55rem,4vw,2.15rem);
}

h2 {
    font-size: 1.08rem;
    margin-top: 2rem;
}

p {
    color: #ccbed6;
    margin: 0 0 1rem;
}

label {
    display: block;
    font-size: .92rem;
    margin: 1rem 0 .25rem;
}

input:not([type=hidden]) {
    display: block;
    width: 100%;
    font: inherit;
    color: inherit;
    border: 1px solid #786087;
    border-radius: .7rem;
    padding: .65rem .9rem;
    background: #261c30;
}

button,a {
    font: inherit;
}

button {
    cursor: pointer;
    border: 0;
}

button:focus-visible,a:focus-visible,input:focus-visible {
    outline: 2px solid #e5b4ff;
    outline-offset: 3px;
}

.primary {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    margin: 1.3rem 0 .4rem;
    border-radius: .85rem;
    font-weight: 700;
    background: #d1adff;
    color: #251338;
}

.primary:hover {
    background: #e6d0ff;
}

.primary:active {
    background: #be96ee;
}

p[role=alert] {
    color: #ffb3bd;
    margin: .75rem 0;
}

.minor,a {
    color: #d9bcf8;
}

.minor {
    background: #302238;
    border-radius: .55rem;
    padding: .35rem .8rem;
}

.session,footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.session {
    padding: .5rem 0;
    border-bottom: 1px solid #44354c;
}

footer {
    margin-top: 1.5rem;
}

output {
    display: block;
    text-align: center;
    user-select: all;
    letter-spacing: .09em;
    padding: 1rem .6rem;
    background: #2b1d36;
    border-radius: .7rem;
    color: #efd9ff;
    font: 600 clamp(1rem,3vw,1.4rem) monospace;
}

@media(max-width:690px) {
    main {
        border: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    .art {
        display: none;
    }
    section {
        max-width: 30rem;
        margin: auto;
    }
}.open-app { text-align: center; text-decoration: none; }
.open-app[hidden] { display: none; }

.field-help {
    margin-top: .35rem;
    color: #c9bbd0;
    font-size: .875rem;
}

.field-help ul, .errorlist {
    margin: .35rem 0;
    padding-inline-start: 1.25rem;
}

.errorlist {
    color: #ffb3bd;
}

.store-link {
    display: block;
    text-align: center;
    padding: .6rem 1rem;
    border: 1px solid #705185;
    border-radius: .85rem;
    text-decoration: none;
}

.store-link:hover {
    background: #302238;
}
