body {
    font-family: "Montserrat", sans-serif;
}

input, button {
    font-family: "Montserrat", sans-serif;
}

/* layout */

.login-screen {
    height: 100vh;
    padding-top: 25px;
    background-color: #0d0d0d;
}

.screen {
    display: flex;
    height: 100%;
}

.left { width: 650px; }
.right { width: calc(100% - 650px); }

.wrapper { width: 480px; }

.navbar { height: 60px; padding: 15px; }

.login-container {
    margin-top: 10vh;
    display: flex;
    justify-content: center;
}

/* card */

.login-form {
    padding: 40px;
    width: 100%;
    background: #101010;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    text-align: center;
}

.login-form-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 40px;
}

/* error */

.error_block {
    display: flex;
    align-items: flex-start; /* ВАЖНО */
    gap: 10px;

    padding: 12px 14px;
    margin-bottom: 20px;

    background: rgba(240, 62, 62, 0.1);
    border: 1px solid rgba(240, 62, 62, 0.4);
    border-left: 3px solid #F03E3E;
    border-radius: 10px;

    animation: fadeIn 0.25s ease;
}

.error_icon {
    width: 18px;
    height: 18px;
    margin-top: 2px; /* выравнивает по тексту */
    flex-shrink: 0;
}

.error_message {
    color: #ff6b6b;
    font-size: 14px;
    line-height: 1.4;
}

/* inputs */

.field-group {
    text-align: left;
    margin-bottom: 20px;
}

.field-group label {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 6px;
    display: block;
}

.login-form-field {
    width: 100%;
    height: 55px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    background: none;
    padding: 10px;
    color: #fff;
    text-align: left;
    transition: 0.2s;
}

.login-form-field:focus,
.login-form-field:hover {
    border-color: #4263EB;
}

/* checkbox */

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    cursor: pointer;
}

.custom-checkbox input { display: none; }

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #2a2a2a;
    border-radius: 6px;
    background: #101010;
    position: relative;
}

.custom-checkbox input:checked + .checkmark {
    background: #4263EB;
}

.checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: 0.2s;
}

.custom-checkbox input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* options */

.login-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 14px;
}

/* links */

.forgot,
.login-bottom a {
    color: #4263EB;
    text-decoration: none;
    position: relative;
}

.forgot::after,
.login-bottom a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: #4263EB;
    transition: 0.25s;
}

.forgot:hover::after,
.login-bottom a:hover::after {
    width: 100%;
}

/* button */

.login-form-button {
    width: 100%;
    height: 55px;
    border-radius: 10px;
    border: none;
    background: #4263EB;
    color: #fff;
    font-size: 18px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.login-form-button:hover {
    transform: translateY(-1px);
    background: #3a56d4;
}

/* bottom */

.login-bottom {
    margin-top: 20px;
    color: #aaa;
    font-size: 14px;
}

/* popup */

.reset-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
}

.reset-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.reset-popup-container {
    width: 400px;
    background: #101010;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 25px;
}

.reset-popup-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.reset-popup-content input {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 2px solid #2a2a2a;
    background: none;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.reset-popup-footer button {
    width: 100%;
    height: 50px;
    background: #4263EB;
    border: none;
    border-radius: 10px;
    color: #fff;
}

.reset-error { color: #F03E3E; font-size: 14px; }
.reset-success { color: #40c057; font-size: 14px; }

/* отдельный стиль для confirm */

.conf-form {
    min-height: 420px;
}

/* email подсветка */
.email-highlight {
    color: #4263EB;
    font-weight: 500;
}

/* поле кода */
.code-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 6px;
}

/* заголовок */
.conf-form-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 30px;
    line-height: 1.4;
}