/* Cloud Ninza Mail sign-in (owner, 2026-11-17: "exactly like the screenshot" — a modern account sign-in: soft pastel
   field with large curved light shapes, a centred white card, wordmark, "Sign in", fields, one solid button, links,
   and a light footer bar). Our colours and artwork only. Markup is added by cloudninza.php login_page(). */
html, body.cn-login { height: 100%; }
body.cn-login {
  margin: 0; min-height: 100vh; display: flex !important; flex-direction: column; font-family: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  color: #1B1B1F; background: #F3F1FA !important; position: relative; overflow-x: hidden;
}
/* the field: pastel light + our own large soft curves (no photos, no other brand's artwork) */
body.cn-login:before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='.95'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='.15'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23C4B5FD' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%23FBCFE8' stop-opacity='.1'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23BAE6FD' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-120 900 C 160 520 420 420 700 470 C 980 520 1180 360 1560 120 L1560 900 Z' fill='url(%23a)'/%3E%3Cpath d='M-80 760 C 120 600 260 520 330 400 L 520 900 L -80 900 Z' fill='url(%23c)'/%3E%3Cpath d='M820 -40 C 900 160 1060 300 1500 260 L1500 -40 Z' fill='url(%23b)'/%3E%3Cpath d='M300 -40 C 380 120 520 210 760 200' fill='none' stroke='%23ffffff' stroke-opacity='.8' stroke-width='3'/%3E%3Cpath d='M960 900 C 1040 720 1180 620 1460 600' fill='none' stroke='%23ffffff' stroke-opacity='.9' stroke-width='3'/%3E%3Cpath d='M0 300 C 160 260 260 180 300 40' fill='none' stroke='%23DDD6FE' stroke-opacity='.8' stroke-width='2'/%3E%3C/svg%3E") center / cover no-repeat,
    radial-gradient(900px 520px at 12% 78%, rgba(251, 207, 232, .55), transparent 70%),
    radial-gradient(800px 600px at 88% 18%, rgba(196, 181, 253, .45), transparent 70%),
    radial-gradient(700px 500px at 70% 95%, rgba(186, 230, 253, .5), transparent 70%),
    linear-gradient(160deg, #F6F3FF 0%, #F8F5FB 45%, #F2F7FD 100%);
}
body.cn-login #layout { flex: 1 0 auto; display: flex !important; align-items: center; justify-content: center; background: transparent !important; position: relative; z-index: 1; min-height: 0; height: auto !important; padding: 48px 16px 24px; box-sizing: border-box; }

/* the card */
body.cn-login #layout-content {
  width: 440px !important; max-width: 100% !important; box-sizing: border-box; margin: 0 auto !important; padding: 40px 40px 32px !important;
  background: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 2px 6px rgba(27, 27, 31, .14), 0 10px 32px rgba(103, 61, 230, .08) !important;
  display: block !important; flex: none !important; height: auto !important; overflow: visible !important; text-align: center;
}
body.cn-login #layout-content:before, body.cn-login #layout-content:after { display: none !important; }
body.cn-login #logo { display: block !important; width: auto !important; height: 30px !important; max-width: 200px !important; margin: 0 auto 20px !important; padding: 0 !important; }
body.cn-login .cn-l-h { margin: 0 0 10px; font-size: 24px; font-weight: 600; color: #1B1B1F; letter-spacing: -.01em; line-height: 1.25; }
body.cn-login .cn-l-sub { margin: 0 0 26px; font-size: 15px; color: #3F4250; }

/* the form */
body.cn-login #login-form { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; text-align: left; }
body.cn-login #login-form table { width: 100% !important; margin: 0 !important; border-collapse: collapse; }
body.cn-login #login-form tr.form-group { display: block !important; margin: 0 0 14px !important; }
body.cn-login #login-form td.input { display: block !important; width: 100% !important; padding: 0 !important; }
body.cn-login #login-form .input-group-prepend { display: none !important; }
body.cn-login #login-form input#rcmloginuser, body.cn-login #login-form input#rcmloginpwd {
  width: 100% !important; height: 40px !important; box-sizing: border-box; padding: 0 12px !important; font-size: 15px !important; color: #1B1B1F !important;
  background: #fff !important; border: 1px solid #C9C6D6 !important; border-bottom-color: #6B6F80 !important; border-radius: 4px !important; box-shadow: none !important; flex: none;
}
body.cn-login #login-form input#rcmloginuser:hover, body.cn-login #login-form input#rcmloginpwd:hover { border-color: #8E8AA3 !important; border-bottom-color: #3F4250 !important; }
body.cn-login #login-form input#rcmloginuser:focus, body.cn-login #login-form input#rcmloginpwd:focus {
  border-color: #C9C6D6 !important; border-bottom: 2px solid #673DE6 !important; padding-bottom: 0 !important; box-shadow: none !important; outline: 0 !important;
}
body.cn-login #login-form input::placeholder { color: #6B6F80; opacity: 1; }
body.cn-login .cn-l-forgot { margin: 2px 0 26px; font-size: 14px; }
body.cn-login a { color: #5B30D6; font-weight: 600; text-decoration: none; }
body.cn-login a:hover { text-decoration: underline; color: #4A22B8; }
body.cn-login #login-form .formbuttons { margin: 0 !important; padding: 0 !important; text-align: center; }
body.cn-login #rcmloginsubmit {
  width: 100% !important; height: 40px !important; margin: 0 !important; padding: 0 16px !important; border: 0 !important; border-radius: 4px !important;
  background: #673DE6 !important; color: #fff !important; font-size: 15px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important;
  box-shadow: none !important; cursor: pointer; transition: background .15s;
}
body.cn-login #rcmloginsubmit:hover { background: #5528D0 !important; }
body.cn-login #rcmloginsubmit:focus-visible { outline: 2px solid #1B1B1F !important; outline-offset: 2px; }
body.cn-login .cn-l-new { margin: 24px 0 0; text-align: center; font-size: 14px; color: #1B1B1F; }
body.cn-login #login-footer { display: none !important; }
body.cn-login #layout-content .noscriptwarning { font-size: 13px; }

/* footer bar */
body.cn-login .cn-l-foot { position: relative; z-index: 1; flex: none; background: rgba(255, 255, 255, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center; padding: 14px 16px 12px; }
body.cn-login .cn-l-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; }
body.cn-login .cn-l-foot nav a { color: #1B1B1F; font-weight: 400; font-size: 13px; }
body.cn-login .cn-l-foot p { margin: 6px 0 0; font-size: 11.5px; color: #1B1B1F; }
body.cn-login .cn-l-foot p a { font-weight: 600; font-size: 11.5px; }

/* the error / notice toast stays readable over the field */
body.cn-login #messagestack { z-index: 10; }

@media (max-width: 520px) {
  body.cn-login #layout { align-items: flex-start; padding: 0; }
  body.cn-login #layout-content { width: 100% !important; min-height: 100%; border-radius: 0 !important; box-shadow: none !important; padding: 36px 24px 28px !important; }
}
html.dark-mode body.cn-login #layout-content { background: #fff !important; }
/* Elastic pushes the logo and the form down by 16vh and paints the panel grey — undo both inside our card */
html body.cn-login #layout #layout-content { background: #fff !important; }
html body.cn-login #layout #logo, html body.cn-login #layout #login-form { position: static !important; top: auto !important; }
html body.cn-login #layout #login-form td.title { display: none !important; }
/* smaller card (owner, 2026-11-17: "very big now") */
html body.cn-login #layout #layout-content { width: 360px !important; padding: 28px 30px 22px !important; border-radius: 10px !important; }
body.cn-login #layout #logo { height: 22px !important; margin-bottom: 14px !important; }
body.cn-login .cn-l-h { font-size: 20px; margin-bottom: 6px; }
body.cn-login .cn-l-sub { font-size: 13.5px; margin-bottom: 18px; }
body.cn-login #login-form tr.form-group { margin-bottom: 10px !important; }
body.cn-login #login-form input#rcmloginuser, body.cn-login #login-form input#rcmloginpwd { height: 36px !important; font-size: 14px !important; padding: 0 10px !important; }
body.cn-login .cn-l-forgot { margin: 0 0 18px; font-size: 13px; }
body.cn-login #rcmloginsubmit { height: 36px !important; font-size: 14px !important; }
body.cn-login .cn-l-new { margin-top: 16px; font-size: 13px; }
@media (max-width: 520px) { html body.cn-login #layout #layout-content { width: 100% !important; padding: 32px 22px 24px !important; } }
