@font-face {
    font-family: 'Dana';
    src: url('/webniz_net/css/fonts/Dana/woff2/dana-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dana';
    src: url('/webniz_net/css/fonts/Dana/woff2/dana-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --nm-bg: #C7E3DB;
    --nm-light: #FFFFFF;
    --nm-dark: #9CBDB4;
    --nm-accent: #0F766F;
    --nm-accent-dark: #0B5B56;
    --nm-text: #123C39;
    --nm-muted: #4F726D;
}

.nm-auth-page *,
.nm-auth-page *::before,
.nm-auth-page *::after,
.nm-auth-section *,
.nm-auth-section *::before,
.nm-auth-section *::after {
    box-sizing: border-box;
}

.nm-auth-page,
.nm-auth-section {
    font-family: 'Dana', Tahoma, Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 88% 82%, rgba(15, 118, 111, 0.16) 0%, rgba(15, 118, 111, 0) 44%),
        var(--nm-bg);
    color: var(--nm-text);
}

.nm-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px;
    direction: rtl;
}

.nm-auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 70px 16px;
    direction: rtl;
}

.nm-auth-card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 42px 38px 34px;
    border-radius: 30px;
    background: var(--nm-bg);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 20px 20px 44px var(--nm-dark), -20px -20px 44px var(--nm-light);
    text-align: right;
}

.nm-auth-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 24px;
    color: var(--nm-accent);
    background: linear-gradient(145deg, #D8F0E9, #B8D9D0);
    box-shadow: 8px 8px 16px var(--nm-dark), -8px -8px 16px var(--nm-light);
}

.nm-auth-mark svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.nm-auth-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--nm-text);
}

.nm-auth-subtitle {
    margin: 0 0 26px;
    text-align: center;
    font-size: 14px;
    color: var(--nm-muted);
}

.nm-auth-form {
    margin: 0;
}

.nm-auth-field {
    margin-bottom: 18px;
}

.nm-auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--nm-text);
}

.nm-auth-input {
    display: block;
    width: 100%;
    height: auto;
    padding: 14px 18px;
    border: none !important;
    border-radius: 16px !important;
    background: var(--nm-bg) !important;
    color: var(--nm-text) !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    box-shadow: inset 5px 5px 10px var(--nm-dark), inset -5px -5px 10px var(--nm-light);
    transition: box-shadow .18s ease;
}

.nm-auth-input:focus {
    box-shadow: inset 6px 6px 12px var(--nm-dark), inset -6px -6px 12px var(--nm-light);
}

.nm-auth-input::placeholder {
    color: #6E928C;
}

.nm-auth-error,
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #A34A42;
}

.nm-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 22px;
    font-size: 13px;
}

.nm-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    color: var(--nm-muted);
    cursor: pointer;
}

.nm-auth-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--nm-accent);
    cursor: pointer;
}

.nm-auth-link {
    color: var(--nm-accent) !important;
    font-weight: 700;
    text-decoration: none;
}

.nm-auth-link:hover {
    color: var(--nm-accent-dark) !important;
    text-decoration: underline;
}

.nm-auth-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(145deg, #12857D, #0C6A63);
    color: #F2FBF9;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 8px 8px 16px var(--nm-dark), -8px -8px 16px var(--nm-light);
    transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.nm-auth-btn:hover {
    background: linear-gradient(145deg, #0F766F, #0B5B56);
}

.nm-auth-btn:active,
.nm-auth-btn:focus {
    box-shadow: inset 5px 5px 10px #07403C, inset -5px -5px 10px #1B9189;
    transform: translateY(1px);
    outline: none;
}

.nm-auth-foot {
    margin: 22px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--nm-muted);
}

.nm-auth-alert {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(163, 74, 66, 0.12);
    color: #8A3F36;
    font-size: 13px;
    box-shadow: inset 3px 3px 6px rgba(156, 189, 180, 0.6), inset -3px -3px 6px rgba(255, 255, 255, 0.7);
}

.nm-auth-alert:empty {
    display: none;
}

.nm-auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
}

.nm-auth-links a {
    color: var(--nm-accent) !important;
    font-weight: 700;
    text-decoration: none;
}

.nm-auth-links a:hover {
    color: var(--nm-accent-dark) !important;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .nm-auth-card {
        padding: 32px 22px 26px;
        border-radius: 24px;
    }

    .nm-auth-title {
        font-size: 21px;
    }

    .nm-auth-section {
        padding: 46px 14px;
    }
}
