/* =========================================================================
   Redhost Security login: a "stage" on the left (logo, photo, light, moving lines,
   optional card from the theme), the form on the right. Phones: stage on top.
   ========================================================================= */
@font-face{font-family:"Gotham Pro";src:url("../fonts/GothamPro.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Gotham Pro";src:url("../fonts/GothamPro-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Gotham Pro";src:url("../fonts/GothamPro-Bold.woff2") format("woff2");font-weight:700;font-display:swap}

body.login{
	--red:#cb1212;--red-rgb:203,18,18;--red-dark:color-mix(in srgb,var(--red) 82%,#000);--gold:#c9a45c;--gold-ink:#8a6a2b;--ink:#14110e;--paper:#f7f3ec;
	--text:#2a241e;--muted:#6f675d;--line:#e3dbcd;--stage:58vw;
	--sans:"Gotham Pro",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
	--serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
	min-height:100vh;margin:0;padding:0 0 0 var(--stage);box-sizing:border-box;
	display:flex;flex-direction:column;justify-content:center;
	background:var(--paper);font-family:var(--sans);color:var(--text)
}
body.login *{box-sizing:border-box}

/* ---------- Stage ---------- */
.redhost-stage{position:fixed;left:0;top:0;bottom:0;width:var(--stage);overflow:hidden;background:var(--ink);color:#fff;isolation:isolate}
.redhost-stage-photo{position:absolute;inset:0;z-index:-3;background-size:cover;background-position:center;filter:grayscale(.35) contrast(1.05);opacity:.5;transform:scale(1.08);animation:redhost-drift 28s ease-in-out infinite alternate}
@keyframes redhost-drift{to{transform:scale(1.16) translate(-1.5%,-1%)}}
.redhost-stage::after{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,rgba(20,17,14,.55) 0%,rgba(20,17,14,.15) 40%,rgba(20,17,14,.9) 100%),linear-gradient(90deg,transparent 60%,rgba(20,17,14,.6))}
/* a soft spotlight that breathes */
.redhost-stage-light{position:absolute;z-index:-1;left:50%;top:-30%;width:120%;height:120%;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(201,164,92,.28),rgba(201,164,92,.08) 55%,transparent 75%);animation:redhost-breathe 7s ease-in-out infinite;pointer-events:none}
@keyframes redhost-breathe{50%{opacity:.55}}

/* staff lines: five golden waves moving slowly */
.redhost-staff{position:absolute;left:0;top:30%;width:200%;height:42%;z-index:-1;overflow:visible;pointer-events:none}
.redhost-staff path{fill:none;stroke:var(--gold);stroke-width:1.2;opacity:calc(.55 - var(--i) * .08);animation:redhost-flow calc(26s + var(--i) * 6s) linear infinite;animation-delay:calc(var(--i) * -3s)}
@keyframes redhost-flow{to{transform:translateX(-25%)}}

.redhost-stage-logo{position:absolute;left:56px;top:48px;display:block;line-height:0;text-decoration:none!important;border:0!important;box-shadow:none!important}
.redhost-stage-logo img{display:block;width:auto;max-width:220px;max-height:72px;height:auto;object-fit:contain;object-position:left center}
.redhost-stage-logo.is-text span{display:block;max-width:440px;font-family:var(--serif);font-size:32px;font-weight:600;line-height:1.1;letter-spacing:-.01em;color:#fff}
.redhost-stage-brand{display:block;width:140px;height:auto;margin-top:18px}
.redhost-stage-text{position:absolute;left:56px;right:56px;bottom:56px}
.redhost-stage-eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:12px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}
.redhost-stage-eyebrow::before{content:"";width:36px;height:1px;background:currentColor}
.redhost-stage-title{margin:14px 0 0;font-family:var(--serif);font-size:clamp(46px,5.4vw,88px);font-weight:600;line-height:.98;letter-spacing:-.01em;color:#fff}
.redhost-stage-title em{display:block;font-weight:500;color:var(--gold)}
.redhost-stage-next{display:inline-flex;align-items:center;gap:18px;max-width:520px;margin-top:34px;padding:14px 22px 14px 14px;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:rgba(20,17,14,.45);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;text-decoration:none;transition:border-color .25s,transform .25s}
.redhost-stage-next:hover{border-color:var(--gold);transform:translateY(-2px);color:#fff}
.redhost-stage-date{flex:none;display:grid;place-items:center;width:64px;height:64px;border-radius:12px;background:var(--red);font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;line-height:1}
.redhost-stage-date b{display:block;margin-bottom:-6px;font-family:var(--serif);font-size:32px;font-weight:600;letter-spacing:0}
.redhost-stage-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.redhost-stage-info small{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.redhost-stage-info strong{font-size:16px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.redhost-stage-info em{font-style:normal;font-size:13px;color:rgba(255,255,255,.7)}

/* ---------- Form side: a card, not the WordPress box ---------- */
.login #login{width:min(400px,calc(100% - 48px))!important;margin:0 auto!important;padding:40px 0 8px!important;border:0;border-radius:0;background:none;box-shadow:none}
.login h1{display:none}

.redhost-login-head{margin:0 0 26px}
.redhost-login-head span{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--red)}
.redhost-login-head span::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px rgba(var(--red-rgb),.15)}
.redhost-login-head h2{margin:12px 0 8px;font-family:var(--serif);font-size:42px;font-weight:600;line-height:1.05;color:var(--text)}
.redhost-login-head p{margin:0;font-size:15px;line-height:1.6;color:var(--muted)}

.login form,body.login #loginform,body.login #lostpasswordform,body.login #resetpassform{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible}
/* Labels: dark and clear */
body.login label{display:block;margin-bottom:8px;font-size:14px;font-weight:700;letter-spacing:.01em;color:var(--text)!important}
/* Fields: clearly a box to type in */
body.login form .input,body.login input[type=text],body.login input[type=password],body.login input[type=email]{
	width:100%!important;height:56px;min-height:56px;margin:0 0 20px!important;padding:0 18px;border:1.5px solid #e2d9ca!important;border-radius:14px;
	background:#fff!important;color:var(--text)!important;font-family:var(--sans);font-size:16px;font-weight:500;box-shadow:0 1px 2px rgba(20,17,14,.04)!important;
	transition:border-color .2s,box-shadow .2s
}
.login form .input::placeholder,.login input::placeholder{color:#a99e8e;font-weight:400}
body.login form .input:hover,body.login input[type=text]:hover,body.login input[type=password]:hover,body.login input[type=email]:hover{border-color:#cdbfa8!important}
body.login form .input:focus,body.login input[type=text]:focus,body.login input[type=password]:focus,body.login input[type=email]:focus{border-color:var(--red)!important;box-shadow:0 0 0 4px rgba(var(--red-rgb),.14)!important;outline:0}
.login .user-pass-wrap{margin:0}
.login .wp-pwd{position:relative;margin:0}
.login .wp-pwd .input{padding-right:58px}
/* Show/hide password: an eye drawn here instead of the WordPress icon font */
.login .button.wp-hide-pw{position:absolute;right:7px;top:7px;width:42px;height:42px;min-height:42px;padding:0;border:0;border-radius:10px;background:none;color:var(--muted);box-shadow:none}
.login .button.wp-hide-pw:hover{background:#f1ebe1;color:var(--text)}
.login .button.wp-hide-pw:focus{box-shadow:0 0 0 2px var(--red)}
.login .button.wp-hide-pw .dashicons{display:none}
.login .button.wp-hide-pw::before{content:"";display:block;width:20px;height:20px;margin:auto;background:currentColor;-webkit-mask:var(--eye) center/contain no-repeat;mask:var(--eye) center/contain no-repeat;
	--eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.login .button.wp-hide-pw:has(.dashicons-hidden)::before{--eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10.9 10.9 0 0 1 12 5c6.4 0 10 7 10 7a17.6 17.6 0 0 1-3.2 4.2M6.6 6.6C3.9 8.4 2 12 2 12s3.6 7 10 7a9.8 9.8 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E")}
.login .forgetmenot{display:flex;align-items:center;gap:10px;float:none;margin:0}
.login .forgetmenot .wp-tooltip{display:none}
body.login .forgetmenot label{display:inline;margin:0;font-size:14px;font-weight:500;line-height:1.35;color:var(--text)!important;cursor:pointer}
/* "Më mbaj mend" and "Harruat fjalëkalimin?" on one row */
.redhost-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:2px 0 0}
.redhost-forgot{font-size:14px;font-weight:700;color:var(--red)!important;text-decoration:none;border-bottom:1.5px solid transparent;transition:border-color .2s}
.redhost-forgot:hover,.redhost-forgot:focus{border-color:currentColor;outline:0}
/* Checkbox ("Më mbaj mend", "Mos e kërko kodin…"): a white box that turns red with a white tick */
body.login input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;flex:none;float:none;display:inline-block;width:22px!important;height:22px!important;min-width:22px;min-height:22px;margin:0!important;padding:0!important;border:1.5px solid #cdbfa8!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important;vertical-align:middle;cursor:pointer;transition:background .15s,border-color .15s}
body.login input[type=checkbox]:hover{border-color:var(--red)!important}
body.login input[type=checkbox]:checked{border-color:var(--red)!important;background:var(--red)!important}
body.login input[type=checkbox]::before{content:""!important;position:absolute;left:50%;top:46%;float:none;width:6px!important;height:11px!important;margin:0!important;border:solid #fff;border-width:0 2.5px 2.5px 0;background:none!important;font:0/0 a;transform:translate(-50%,-50%) rotate(45deg) scale(0);transition:transform .15s}
body.login input[type=checkbox]:checked::before{transform:translate(-50%,-50%) rotate(45deg) scale(1)}
body.login input[type=checkbox]:focus-visible{outline:0;box-shadow:0 0 0 4px rgba(var(--red-rgb),.18)!important}

.login .submit{display:block;clear:both;margin-top:26px;padding:0}
.wp-core-ui.login .button-primary{
	float:none;width:100%;height:56px;min-height:56px;padding:0 24px;border:0;border-radius:999px;
	background:var(--red);color:#fff;font-family:var(--sans);font-size:16px;font-weight:700;letter-spacing:.02em;
	text-shadow:none;box-shadow:0 12px 26px -12px rgba(var(--red-rgb),.7);transition:background .2s,transform .2s,box-shadow .2s
}
.wp-core-ui.login .button-primary:hover{background:var(--red-dark);transform:translateY(-1px);box-shadow:0 16px 30px -12px rgba(var(--red-rgb),.8)}
.wp-core-ui.login .button-primary:focus{background:var(--red-dark);box-shadow:0 0 0 4px rgba(var(--red-rgb),.25)}
.wp-core-ui.login .button-primary:active{transform:none}
.login .button.wp-generate-pw{height:44px;margin:0 0 18px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text)}
.login .pw-weak{margin:0 0 16px}
.login #pass-strength-result{margin:0 0 18px;border-radius:10px}
.login .reset-pass-submit{display:flex;flex-direction:column;gap:10px}
.login .reset-pass-submit .button{width:100%}

/* Messages */
.login .message,.login .notice,.login .success,.login #login_error{margin:0 0 22px;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:12px;background:#fff;box-shadow:none;font-size:14px;line-height:1.5;color:var(--text)}
.login #login_error,.login .notice-error{border-left-color:var(--red)}
.login .message a,.login #login_error a{color:var(--red)}

/* Links under the form (without JavaScript they stay here, styled) */
.login #nav,.login #backtoblog{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 22px;margin:22px 0 0;padding:0;font-size:14px;text-align:center}
.login #backtoblog{margin-top:10px}
.login #nav a,.login #backtoblog a{display:inline-flex;align-items:center;gap:6px;color:var(--muted)!important;font-weight:500;text-decoration:none;transition:color .2s}
.login #nav a:hover,.login #backtoblog a:hover,.login #nav a:focus{color:var(--red)!important;outline:0}
.login .privacy-policy-page-link{margin:18px 0 0;text-align:center;font-size:13px}
.login .privacy-policy-page-link a{color:var(--muted)}

/* "Kthehu te faqja": a pill in the corner */
.redhost-back{position:fixed!important;top:22px!important;right:24px!important;left:auto!important;bottom:auto!important;transform:none!important;z-index:5;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 16px 0 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text)!important;font-size:13px;font-weight:600;line-height:1;text-decoration:none;white-space:nowrap;box-shadow:0 4px 14px -6px rgba(20,17,14,.2);transition:border-color .2s,color .2s}
.redhost-back:hover,.redhost-back:focus{border-color:var(--red);color:var(--red)!important;outline:0}

.redhost-login-copy{position:fixed;right:32px;bottom:22px;z-index:1;margin:0;font-size:12px;letter-spacing:.02em;text-align:right;color:#a59b8d}


/* entrance */
.login #login{animation:redhost-rise .7s cubic-bezier(.2,.8,.2,1) both}
.redhost-stage-text{animation:redhost-rise .9s .15s cubic-bezier(.2,.8,.2,1) both}
@keyframes redhost-rise{from{opacity:0;transform:translateY(16px)}}

/* ---------- Tablet / phone: a short header on top, the form fits without scrolling ---------- */
/* Short windows: the copyright at the end of the form side, not fixed over it */
@media (max-height:640px){
	.redhost-login-copy{position:static;margin:24px 32px 20px;align-self:flex-end}
}
@media (max-width:900px){
	body.login{--stage:100vw;padding:0;justify-content:flex-start}
	.redhost-login-copy{position:static;margin:28px 20px 18px;align-self:flex-end;text-align:right}
	.redhost-stage{position:relative;display:flex;flex-direction:column;justify-content:flex-end;width:100%;min-height:0;padding:16px 20px 20px;flex:none}
	.redhost-stage-logo{position:static}
	.redhost-stage-logo img{max-width:150px;max-height:48px}
	.redhost-stage-logo.is-text span{font-size:22px}
	.redhost-stage-brand{width:100px;margin-top:0}
	.redhost-stage-text{position:static;margin-top:14px;animation:none}
	.redhost-stage-eyebrow,.redhost-stage-next{display:none}
	.redhost-stage-title{margin:0;font-size:28px;line-height:1.05}
	.redhost-stage-title em{display:inline}
	.redhost-staff{top:10%;height:90%;opacity:.6}
	.login #login{width:min(420px,calc(100% - 40px))!important;margin:0 auto!important;padding:24px 0 8px!important}
	.redhost-login-head{text-align:center}
	.redhost-back{position:absolute!important;top:14px!important;right:16px!important}
	.redhost-login-head{margin-bottom:18px}
	.redhost-login-head h2{margin:8px 0 4px;font-size:30px}
	.redhost-login-head p{font-size:14px;line-height:1.45}
	body.login form .input,body.login input[type=text],body.login input[type=password],body.login input[type=email]{height:52px;min-height:52px;margin:0 0 16px!important}
	.login .button.wp-hide-pw{top:5px}
	#login form p.submit{margin-top:18px}
	.wp-core-ui.login .button-primary{height:52px;min-height:52px}
	.redhost-back{height:34px;padding:0 12px 0 9px;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff!important;box-shadow:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
	.redhost-back:hover,.redhost-back:focus{border-color:#fff;color:#fff!important}
}
/* Short phones: only the logo on top */
@media (max-width:900px) and (max-height:700px){
	.redhost-stage-text{display:none}
	.redhost-stage{padding:14px 20px}
	.redhost-login-head p{display:none}
}

/* The small login box inside the admin (session expired): no stage */
body.login.interim-login{padding:0;--stage:0px}
.interim-login .redhost-stage,.interim-login .redhost-login-copy{display:none}
.interim-login #login{padding:24px 0;border:0;border-radius:0;box-shadow:none}

@media (prefers-reduced-motion:reduce){
	.redhost-stage-photo,.redhost-stage-light,.redhost-staff path,.login #login,.redhost-stage-text{animation:none}
}

/* ---------- WordPress 7 core rules that win on specificity ---------- */
.login form .forgetmenot{float:none;gap:10px;margin:0}
#login form p.submit{margin-top:26px}
.login .wp-tooltip .wp-tooltip__toggle{color:var(--muted)}
.login .wp-tooltip .wp-tooltip__toggle:hover,.login .wp-tooltip .wp-tooltip__toggle:focus{color:var(--red);box-shadow:none}

/* ---------- 2FA screens ---------- */
.redhost-2fa-code{letter-spacing:.5em;text-align:center;font-size:24px!important;font-weight:500;font-variant-numeric:tabular-nums}
.redhost-2fa-code::placeholder{letter-spacing:.3em;color:#cfc4b2}
body.login form.redhost-2fa-alt{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:22px 0 0!important;font-size:14px;text-align:center}
.login form .input.redhost-2fa-code{margin-bottom:0}
.login .redhost-trust{margin:18px 0 0!important;align-items:flex-start}
.login .redhost-trust input[type=checkbox]{margin-top:1px!important}
.redhost-2fa-alt a,.redhost-2fa-alt button{padding:0;border:0;background:none;color:var(--muted);font:inherit;cursor:pointer;text-decoration:none;border-bottom:1px solid transparent}
.redhost-2fa-alt a:hover,.redhost-2fa-alt button:hover{color:var(--red);border-color:currentColor}
.redhost-2fa-hidden{display:none}

/* QR code and the key under it */
.redhost-qr{display:flex;align-items:center;gap:18px;margin:0 0 22px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.redhost-qr-img{flex:none;width:150px;height:150px;line-height:0}
.redhost-qr-img img,.redhost-qr-img svg{width:100%;height:100%;image-rendering:pixelated}
.redhost-qr-steps{margin:0;padding:0 0 0 18px!important;font-size:13px;line-height:1.55;color:var(--muted)}
.redhost-qr-steps li{margin:0 0 6px!important}
.redhost-key{display:block;margin-top:6px;padding:8px 10px;border-radius:8px;background:var(--paper);font:500 12px/1.4 ui-monospace,Consolas,monospace;letter-spacing:.06em;color:var(--text);word-break:break-all;user-select:all}

/* Backup codes */
.redhost-codes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px!important;padding:16px!important;border:1px dashed #cfc4b2;border-radius:14px;background:#fff;list-style:none}
.redhost-codes li{font:500 16px/1.4 ui-monospace,Consolas,monospace;letter-spacing:.08em;text-align:center;color:var(--text)}
.redhost-codes-actions{display:flex;gap:10px;margin:0 0 6px}
.redhost-codes-actions button{flex:1;height:42px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font:500 14px var(--sans);cursor:pointer}
.redhost-codes-actions button:hover{border-color:var(--red);color:var(--red)}
.redhost-continue{display:flex;align-items:center;justify-content:center;width:100%;height:56px;margin-top:22px;border-radius:999px;background:var(--red);color:#fff!important;font-size:16px;font-weight:700;text-decoration:none}
.redhost-continue:hover{background:var(--red-dark)}
@media (max-width:420px){.redhost-qr{flex-direction:column;align-items:flex-start}}
.redhost-open-app-wrap{margin:-8px 0 22px}.redhost-open-app-wrap .redhost-open-app{display:flex!important;align-items:center;justify-content:center;width:100%;height:50px;border:2px solid var(--red)!important;border-radius:999px;background:#fff!important;color:var(--red)!important;font:700 15px var(--sans);text-decoration:none;box-shadow:none!important}.redhost-open-app-wrap small{display:block;margin-top:8px;font-size:12px;line-height:1.5;color:var(--muted)}
