:root {
    color-scheme: dark;
    font-family: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

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

body.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
    color: #f4ead5;
    background:
        linear-gradient(90deg, rgba(3, 9, 12, .58), rgba(3, 9, 12, .15) 48%, rgba(3, 9, 12, .62)),
        url("/v2/images/bg-main.jpg") center top / cover fixed no-repeat #071319;
}

.auth-card,
.register-panel {
    width: min(100%, 460px);
    padding: 28px 30px;
    border: 1px solid #9b793e;
    border-radius: 10px;
    background: rgba(18, 18, 16, .91);
    box-shadow: 0 18px 65px rgba(0, 0, 0, .72), inset 0 0 28px rgba(191, 144, 61, .08);
}

.register-panel {
    width: min(100%, 1040px);
}

.auth-card h1,
.register-panel h1 {
    margin: 0 0 22px;
    color: #f2d58d;
    font-size: clamp(27px, 4vw, 38px);
    text-align: center;
    text-shadow: 0 2px 5px #000;
}

.auth-card label,
.register-panel label {
    color: #d9c9a8;
    font-weight: 700;
}

.auth-card input,
.register-panel input[type="email"],
.register-panel input[type="password"],
.register-panel input[type="text"] {
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #7b6846;
    border-radius: 5px;
    color: #f8f1df;
    background: rgba(0, 0, 0, .56);
    outline: none;
}

.auth-card input:focus,
.register-panel input:focus {
    border-color: #d5a94d;
    box-shadow: 0 0 0 3px rgba(213, 169, 77, .18);
}

.auth-card button,
.register-panel button {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #e6c16a;
    border-radius: 5px;
    color: #fff6dc;
    background: linear-gradient(#a83228, #67120f);
    font: 700 17px Georgia, "Times New Roman", serif;
    cursor: pointer;
}

.auth-card button:hover,
.register-panel button:hover {
    filter: brightness(1.14);
}

.auth-card a,
.register-panel a {
    color: #f0c86c;
}

.auth-links {
    margin-bottom: 0;
    text-align: center;
    line-height: 1.8;
}

.register-layout {
    display: grid;
    grid-template-columns: minmax(485px, 1.1fr) minmax(280px, .9fr);
    gap: 34px;
    align-items: start;
}

#canvasReg {
    min-height: 528px;
    text-align: center;
}

#regForm p {
    margin: 0 0 14px;
}

#Email_error,
#Pass_error,
#Pass2_error {
    display: block;
    margin-top: 5px;
    color: #ff958a;
}

.register-login {
    margin: 18px 0 0;
    text-align: center;
}

@media (max-width: 850px) {
    body.auth-page {
        display: block;
        padding: 16px;
    }

    .register-layout {
        grid-template-columns: 1fr;
    }

    #canvasReg {
        min-height: 0;
        overflow-x: auto;
    }
}
