/* =====================================================================
 * Prisijungimas (wp-login.php) – aplikacijos stilius (v1.1.1)
 * ===================================================================== */

body.login.dw-login *,
body.login.dw-login *::before,
body.login.dw-login *::after {
    box-sizing: border-box;
}

body.login.dw-login {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(160deg, #58a864 0%, #0a69a5 55%, #0a69a5 100%) top / 100% 46vh no-repeat,
        #f3f5f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    color: #1d2327;
    -webkit-text-size-adjust: 100%;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

.dw-login #login {
    width: 100%;
    max-width: 400px;
    padding: 24px 12px 12px;
    margin: 0 auto;
}

/* Logotipas – baltoje kortelėje */
.dw-login h1 {
    margin: 0 0 14px;
}

.dw-login h1 a {
    display: block;
    width: 100%;
    max-width: 230px;
    height: 70px;
    margin: 0 auto;
    background-color: #fff;
    background-size: auto 40px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-indent: -9999px;
    overflow: hidden;
    font-size: 0;
}

/* Forma */
.dw-login #loginform,
.dw-login #lostpasswordform,
.dw-login #resetpassform,
.dw-login #registerform {
    margin: 0;
    padding: 20px 16px 18px;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: visible;
}

.dw-login form p,
.dw-login .user-pass-wrap {
    margin-bottom: 12px;
}

.dw-login label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.4;
}

.dw-login form .input,
.dw-login input[type="text"],
.dw-login input[type="password"],
.dw-login input[type="email"] {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 16px; /* iOS nepadidina */
    line-height: 1.3;
    box-shadow: none;
}

.dw-login form .input:focus,
.dw-login input:focus {
    border-color: #0a69a5;
    box-shadow: 0 0 0 3px rgba(10, 105, 165, 0.15);
    outline: none;
}

.dw-login .wp-pwd {
    position: relative;
}

.dw-login .wp-pwd .button.wp-hide-pw {
    top: 4px;
    right: 4px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    color: #6b7280;
    border: 0;
    background: transparent;
}

.dw-login .forgetmenot {
    float: none;
    margin: 4px 0 14px;
}

.dw-login .forgetmenot label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.dw-login input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 5px;
}

.dw-login .submit {
    margin: 0;
    padding: 0;
}

.dw-login .button-primary,
.dw-login #wp-submit {
    float: none;
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: #0a69a5;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 6px 16px rgba(10, 105, 165, 0.3);
    cursor: pointer;
}

.dw-login .button-primary:hover,
.dw-login .button-primary:focus {
    background: #085a8d;
}

/* Pranešimai */
.dw-login .message,
.dw-login .notice,
.dw-login #login_error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 0;
    border-left: 4px solid #0a69a5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.dw-login #login_error,
.dw-login .notice-error {
    border-left-color: #d63638;
}

/* Nuorodos */
.dw-login #nav,
.dw-login #backtoblog {
    margin: 12px 0 0;
    padding: 0;
    text-align: center;
    font-size: 14px;
}

.dw-login #nav a,
.dw-login #backtoblog a {
    color: #0a69a5;
    text-decoration: none;
}

.dw-login .privacy-policy-page-link {
    margin: 10px 0 0;
}

.dw-login .language-switcher {
    margin-top: 12px;
}

.dw-login .language-switcher form {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dwl-footer {
    margin: 18px 0 8px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

/* ---------- Diegimo pasiūlymas ---------- */
.dw-icon {
    flex: 0 0 auto;
    vertical-align: middle;
}

.dwa-install {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
}

.dwa-install[hidden] { display: none; }

.dwa-install-card {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 40px 12px 64px;
    min-height: 64px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    font-size: 14px;
    line-height: 1.4;
}

.dwa-install-card strong { display: block; }
.dwa-install-card p { margin: 4px 0 0; color: #374151; font-size: 13px; }
.dwa-install-card p[hidden] { display: none; }
.dwa-install-card .dw-icon { width: 16px; height: 16px; color: #0a69a5; vertical-align: -3px; }

.dwa-install-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.dwa-install-close {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    cursor: pointer;
}

.dwa-install-close .dw-icon { width: 18px; height: 18px; color: #9ca3af; }

.dwa-install-go {
    margin-top: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 10px;
    background: #0a69a5;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.dwa-install-go[hidden] { display: none; }

@media (min-width: 600px) {
    .dw-login #login { padding-top: 40px; }
    .dw-login #loginform { padding: 26px 24px 22px; }
}
