:root {
    --background: #111011;
    --color: #ffffff;
    --primary-color: #8f6ed7;
    --primary-color-hover: #b4e003;
    --input-bg: rgba(145, 145, 145, 0.12);
    --border-color: hsla(0, 0%, 65%, 0.158);
    --error-color: #b4e003;
    --muted-color: rgba(255, 255, 255, 0.65);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


a {
    text-decoration: none;
    color: var(--color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color-hover);
}

.z-flex-vcenter {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.z-flex-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    width: 100%;
}

.flex-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.auth-page {
    min-height: 100vh;
    padding: 30px 15px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    margin: 0 auto;
}

.auth-circle {
    width: 8rem;
    height: 8rem;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    z-index: 0;
}

.auth-circle-one {
    top: 0;
    left: 0;
    transform: translate(-45%, -45%);
}

.auth-circle-two {
    right: 0;
    bottom: 0;
    transform: translate(45%, 45%);
}

.auth-card {
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 36px 1px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    padding: 32px 24px 24px;
    background: rgba(255, 255, 255, 0.03);
}

.auth-illustration-wrap {
    position: relative;
    min-height: 110px;
    margin-bottom: 10px;
}

.auth-illustration {
    position: absolute;
    top: -45px;
    right: 0;
    width: 180px;
    max-width: 70%;
    height: auto;
}

.auth-title {
    margin: 0 0 25px;
    font-size: 32px;
    line-height: 1.1;
    opacity: 0.88;
}

.auth-form {
    width: 100%;
}

.auth-field {
    width: 100%;
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted-color);
}

.auth-input {
    display: block;
    width: 100%;
    padding: 14px 15px;
    color: var(--color);
    outline: none;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.6px;
    font-size: 15px;
    backdrop-filter: blur(15px);
    transition: 0.2s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.auth-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.2);
    animation: wobble 0.3s ease-in;
}

.auth-btn {
    background-color: var(--primary-color);
    color: var(--color);
    display: block;
    padding: 14px 16px;
    border-radius: 6px;
    outline: none;
    font-size: 17px;
    letter-spacing: 1px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 18px;
    transition: all 0.2s ease-in-out;
    border: none;
}

.auth-btn:hover {
    background-color: var(--primary-color-hover);
    color: #111011;
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.auth-links {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-links a {
    opacity: 0.75;
    font-size: 14px;
}

.auth-links a:hover {
    opacity: 1;
}

.auth-common-errors {
    margin-bottom: 18px;
}

.auth-common-error,
.auth-field-error {
    color: var(--error-color);
    font-size: 13px;
    line-height: 1.45;
}

.auth-common-error {
    margin-bottom: 8px;
}

.auth-field-error {
    margin-top: 8px;
}

.auth-success {
    color: var(--primary-color-hover);
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-muted {
    opacity: 0.65;
}

@keyframes wobble {
    0% {
        transform: scale(1.025);
    }
    25% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.025);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 575px) {
    .auth-page {
        padding: 20px 12px;
    }

    .auth-card {
        padding: 26px 16px 20px;
    }

    .auth-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .auth-illustration-wrap {
        min-height: 75px;
    }

    .auth-illustration {
        width: 130px;
        top: -22px;
    }

    .auth-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-circle {
        width: 5rem;
        height: 5rem;
    }
}