/**
 * NetMkd DeskPortal — Auth CSS
 * Локација: assets/css/auth.css
 *
 * Стилови за login, register, forgot password
 * и reset password страниците.
 */

/* ============================================================
   AUTH WRAP — ЦЕНТРИРАЊЕ
   ============================================================ */

.nmdp-auth-wrap {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ============================================================
   AUTH КАРТИЧКА
   ============================================================ */

.nmdp-auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: nmdpSlideUp 0.5s ease both;
}

/* ============================================================
   ЛОГО
   ============================================================ */

.nmdp-auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    text-align: center;
}

.nmdp-auth-logo-img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nmdp-auth-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nmdp-auth-logo-fallback .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.nmdp-auth-site-name {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.nmdp-auth-tagline {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    font-weight: 400;
}

/* ============================================================
   ФОРМА
   ============================================================ */

.nmdp-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nmdp-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nmdp-auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nmdp-auth-label .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

.nmdp-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nmdp-auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.nmdp-auth-input:focus {
    outline: none;
    border-color: #1e3a8a;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}

.nmdp-auth-input::placeholder { color: #cbd5e1; }

/* Прикажи/скриј лозинка копче */
.nmdp-auth-pass-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.nmdp-auth-pass-toggle:hover { color: #475569; }

.nmdp-auth-pass-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Кога е во input-wrap — дај padding за да не се преклопува */
.nmdp-auth-input-wrap .nmdp-auth-input {
    padding-right: 42px;
}

/* ============================================================
   ОПЦИИ (Remember me + Forgot password)
   ============================================================ */

.nmdp-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -2px;
}

.nmdp-auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.nmdp-auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1e3a8a;
    cursor: pointer;
}

.nmdp-auth-link {
    font-size: 13px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nmdp-auth-link:hover { opacity: 0.7; }

/* ============================================================
   ПОРАКИ
   ============================================================ */

.nmdp-auth-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.nmdp-auth-msg-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.nmdp-auth-msg-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.nmdp-auth-msg-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Alert (статичен) */
.nmdp-auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.nmdp-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.nmdp-alert-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.nmdp-auth-alert .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================================
   SUBMIT КОПЧЕ
   ============================================================ */

.nmdp-auth-submit {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
    margin-top: 4px;
    text-decoration: none;
}

.nmdp-auth-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}

.nmdp-auth-submit:active {
    transform: translateY(0);
}

.nmdp-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.nmdp-auth-submit .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ============================================================
   FOOTER ЛИНК (Регистрација / Назад)
   ============================================================ */

.nmdp-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #94a3b8;
}

/* ============================================================
   КОПИРАЈТ
   ============================================================ */

.nmdp-auth-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin: 0;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */

@keyframes nmdpSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes nmdpSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.nmdp-spin { animation: nmdpSpin 1s linear infinite; display: inline-block; }

/* Shake за грешка */
@keyframes nmdpShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-7px); }
    40%       { transform: translateX(7px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.nmdp-animate-shake { animation: nmdpShake 0.4s ease; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
    .nmdp-auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .nmdp-auth-site-name { font-size: 18px; }

    .nmdp-auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}