@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.auth-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 72px);
    padding: 32px 16px 48px;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: #faf6f1;
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 18px 50px rgba(80, 50, 30, 0.12);
    font-family: 'Poppins', sans-serif;
}

.auth-card h2 {
    margin: 0 0 28px;
    text-align: center;
    color: #111;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
}

.auth-card form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.auth-field {
    display: block;
    width: 100%;
    margin: 0 0 22px;
}

.auth-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #222;
    letter-spacing: 0.01em;
    position: static;
    padding: 0;
    transform: none;
    pointer-events: auto;
}

.auth-field span em {
    color: #C1440E;
    font-style: normal;
    font-weight: 600;
    margin-left: 1px;
}

.auth-field input,
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px;
    margin: 0;
    padding: 6px 0 8px !important;
    border: none !important;
    border-bottom: 1.5px solid #222 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    color: #222 !important;
    font-size: 15px !important;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.4;
    z-index: auto;
}

.auth-field input:focus,
.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="email"]:focus {
    border: none !important;
    border-bottom: 1.5px solid #222 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #222;
    caret-color: #222;
    border-radius: 0 !important;
    box-shadow: 0 0 0 1000px #faf6f1 inset !important;
    -webkit-box-shadow: 0 0 0 1000px #faf6f1 inset !important;
    transition: background-color 9999s ease-out;
}

.auth-submit,
.auth-card button[type="submit"],
.auth-card input[type="submit"] {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 48px !important;
    min-height: 48px;
    margin: 8px 0 0;
    padding: 0 16px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #C1440E !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(193, 68, 14, 0.22);
    transform: none !important;
}

.auth-submit:hover,
.auth-card button[type="submit"]:hover,
.auth-card input[type="submit"]:hover {
    background: #A3380C !important;
    color: #fff !important;
}

.auth-switch {
    margin: 18px 0 0;
    font-size: 13px;
    color: #444;
    text-align: left;
}

.auth-switch a,
.auth-switch a:hover,
.auth-switch b {
    color: #C1440E !important;
    background: none !important;
    font-weight: 700;
    text-decoration: none;
}

.auth-error {
    margin: -6px 0 14px;
    color: #c1440e;
    font-size: 13px;
}

@media (max-width: 480px) {
    .auth-wrap {
        min-height: calc(100dvh - 56px);
        padding: 20px 14px 32px;
        align-items: center;
    }

    .auth-card {
        padding: 28px 22px 22px;
        border-radius: 16px;
    }

    .auth-card h2 {
        font-size: 24px;
        margin-bottom: 22px;
    }
}
