* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background:
            radial-gradient(circle at top left, rgba(186, 186, 186, 0.12), transparent 35%),
            linear-gradient(135deg, #2b2b2b 0%, #707070 100%);
    color: #343433;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #343433;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.login-brand {
    padding: 34px 34px 28px;
    background: #343433;
    color: #fff;
    text-align: center;
}

.login-logo {
    position: relative;
    display: inline-block;
    font-size: 46px;
    font-weight: 300;
    letter-spacing: 10px;
    line-height: 1;
}

.login-logo span {
    position: absolute;
    top: -8px;
    right: -20px;
    font-size: 11px;
    letter-spacing: 0;
    opacity: .8;
}

.login-subtitle {
    margin-top: 12px;
    color: #b9b9ba;
    font-size: 14px;
    letter-spacing: 1px;
}

.login-form {
    padding: 34px;
    background: #fff;
}

.login-form h1 {
    margin: 0;
    color: #343433;
    font-size: 28px;
    font-weight: 300;
}

.login-text {
    margin: 10px 0 24px;
    color: #828282;
    font-size: 14px;
    line-height: 1.5;
}

.login-alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 10px;
    background: #fff1f1;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.4;
}

.login-field {
    display: block;
    margin-bottom: 16px;
}

.login-field span {
    display: block;
    margin-bottom: 7px;
    color: #828282;
    font-size: 13px;
}

.login-field input,
.register-form input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #343433;
    font-size: 15px;
    transition: .2s ease;
}

.login-field input:focus,
.register-form input:focus {
    border-color: #525a58;
    box-shadow: 0 0 0 3px rgba(82, 90, 88, .12);
}

.login-submit,
.register-form button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: #343433;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.login-submit:hover,
.register-form button:hover {
    background: #191919;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
}

.login-actions a,
.login-back {
    color: #5d625c;
    font-size: 14px;
    text-decoration: none;
    transition: .2s ease;
}

.login-actions a:hover,
.login-back:hover {
    color: #c8624d;
}

.login-back {
    display: block;
    padding: 18px 34px;
    background: #ebebeb;
    text-align: center;
}

.shadow {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .55);
}

.popup {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 430px;
    transform: translate(-50%, -50%);
    padding: 32px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

.popup h3 {
    margin: 0 0 12px;
    color: #343433;
    font-size: 24px;
    font-weight: 300;
}

.popup p {
    margin: 0 0 18px;
    color: #828282;
    font-size: 15px;
    line-height: 1.5;
}

.popup-phone {
    padding: 14px;
    border-radius: 10px;
    background: #ebebeb;
    color: #343433;
    font-size: 18px;
    line-height: 1.5;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #ebebeb;
    color: #343433;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 480px) {
    .login-card {
        border-radius: 14px;
    }

    .login-brand,
    .login-form {
        padding: 28px 22px;
    }

    .login-logo {
        font-size: 38px;
        letter-spacing: 8px;
    }

    .login-actions {
        flex-direction: column;
        align-items: center;
    }
}

.popup-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #343433;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s ease;
}

.popup-mail:hover {
    background: #191919;
    color: #fff;
}