/*
Theme Name: Secure Portal
Theme URI: https://example.com/
Author: Custom
Description: A lightweight full-screen secure portal login theme inspired by the supplied visual reference.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: secure-portal
*/

:root {
  --sp-card: rgba(255,255,255,.88);
  --sp-text: #222;
  --sp-muted: #555;
  --sp-button: #202020;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--sp-text);
}

a { color: inherit; }

.sp-login-page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0b9ca4 url("assets/images/background.jpg") center center / cover no-repeat;
}

.sp-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(0,110,120,.04));
}

.sp-login-card {
  position: absolute;
  z-index: 2;
  width: 390px;
  min-height: 450px;
  left: 8.4vw;
  top: 50%;
  transform: translateY(-50%);
  padding: 28px 26px 34px;
  border-radius: 7px;
  background: var(--sp-card);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 14px 45px rgba(0,0,0,.16);
}

.sp-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.sp-brand-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4b5357;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.4px;
}

.sp-brand-mark {
  width: 22px;
  height: 22px;
  border: 4px solid #e63939;
  border-radius: 50%;
  position: relative;
}

.sp-brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid #666;
  border-left-color: transparent;
  border-radius: 50%;
}

.sp-lang {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #aaa;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
  color: #333;
}

.sp-field {
  display: block;
  width: 100%;
  height: 58px;
  border: 0;
  border-bottom: 1px solid #d6d6d6;
  background: rgba(255,255,255,.22);
  outline: none;
  padding: 24px 0 8px;
  font-size: 15px;
  color: #222;
}

.sp-field::placeholder { color: #333; opacity: 1; }

.sp-submit {
  width: 100%;
  height: 42px;
  margin-top: 27px;
  border: 0;
  border-radius: 22px;
  background: var(--sp-button);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sp-submit:hover { background: #111; }

.sp-forgot {
  display: block;
  text-align: center;
  margin-top: 27px;
  color: #111;
  font-size: 13px;
  text-decoration: underline;
}

.sp-footer {
  position: absolute;
  z-index: 3;
  left: 34px;
  right: 34px;
  bottom: 26px;
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.sp-footer .sp-copy { margin-left: auto; }

@media (max-width: 700px) {
  .sp-login-card {
    position: relative;
    width: calc(100% - 32px);
    left: auto;
    top: auto;
    transform: none;
    margin: 0 16px;
    padding: 24px 22px 30px;
  }

  .sp-login-page {
    min-height: 100vh;
    padding-top: 10vh;
    padding-bottom: 120px;
    overflow-y: auto;
  }

  .sp-footer {
    left: 20px;
    right: 20px;
    bottom: 16px;
    gap: 15px;
  }

  .sp-footer .sp-copy {
    margin-left: 0;
    width: 100%;
  }
}

.sp-background-video {
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.sp-login-page::before { z-index:1; }
.sp-brand-name .custom-logo-link {
  display:flex;
  align-items:center;
  line-height:0;
}
.sp-brand-name .custom-logo {
  display:block;
  width:auto;
  max-width:190px;
  max-height:48px;
  height:auto;
}

/* Corporate client dashboard */
.sp-dashboard{min-height:100vh;background:#f5f6f7;color:#171717;font-family:Arial,Helvetica,sans-serif}
.sp-dash-header{height:76px;background:#fff;border-bottom:1px solid #e7e8ea;display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:20}
.sp-dash-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:18px;font-weight:700;color:#222}
.sp-dash-brand .custom-logo{max-width:170px;max-height:42px;width:auto;height:auto;display:block}
.sp-header-actions{display:flex;align-items:center;gap:10px}
.sp-icon-btn{width:38px;height:38px;border:0;border-radius:50%;background:#f5f5f5;font-size:21px;cursor:pointer;position:relative}
.sp-icon-btn i{position:absolute;width:7px;height:7px;background:#c92f36;border-radius:50%;right:8px;top:7px}
.sp-user-chip{display:flex;align-items:center;gap:9px;margin-left:12px;padding:5px 12px 5px 5px;border:1px solid #e4e4e4;border-radius:24px;background:#fff;font-size:13px;font-weight:600}
.sp-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#1e1e1e;color:#fff;font-size:12px}
.sp-dash-shell{display:flex;max-width:1600px;margin:auto}
.sp-sidebar{width:230px;min-height:calc(100vh - 76px);background:#fff;border-right:1px solid #e7e8ea;padding:28px 14px;display:flex;flex-direction:column;justify-content:space-between;position:sticky;top:76px;height:calc(100vh - 76px)}
.sp-sidebar nav,.sp-sidebar-bottom{display:grid;gap:5px}
.sp-sidebar a{display:flex;align-items:center;gap:12px;padding:12px 15px;border-radius:10px;color:#666;text-decoration:none;font-size:13px}
.sp-sidebar a span{width:20px;text-align:center;font-size:17px}
.sp-sidebar a:hover,.sp-sidebar a.active{background:#f1f2f3;color:#111;font-weight:600}
.sp-dash-content{flex:1;padding:34px;min-width:0}
.sp-welcome-row{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}
.sp-eyebrow{font-size:10px;letter-spacing:1.4px;color:#8a8d91;font-weight:700;margin:0 0 8px;text-transform:uppercase}
.sp-welcome-row h1{font-size:30px;letter-spacing:-1px;margin:0 0 6px;font-weight:600}
.sp-subtitle{margin:0;color:#777;font-size:14px}
.sp-primary-action{border:0;background:#202020;color:#fff;border-radius:22px;padding:12px 19px;font-weight:600;cursor:pointer}
.sp-summary-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:16px;margin-bottom:18px}
.sp-balance-card,.sp-stat-card,.sp-panel{border-radius:14px;border:1px solid #e6e7e9;background:#fff;box-shadow:0 3px 16px rgba(0,0,0,.035)}
.sp-balance-card{padding:23px 25px;min-height:155px}
.sp-dark{background:#1d1d1e;color:#fff;border-color:#1d1d1e}
.sp-card-top,.sp-card-bottom{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#999}
.sp-dark .sp-card-top{color:#c9c9c9}.sp-card-bottom{margin-top:18px}.sp-dark .sp-card-bottom span:first-child{color:#73a970}
.sp-big-number{font-size:34px;font-weight:600;letter-spacing:-1.5px;margin-top:18px}.sp-big-number small,.sp-stat-card strong small{font-size:13px;font-weight:500;color:#999}
.sp-stat-card{padding:22px 24px;display:flex;flex-direction:column;justify-content:space-between;min-height:155px}.sp-stat-label{font-size:12px;color:#777}.sp-stat-card strong{font-size:26px;letter-spacing:-1px}.sp-positive{font-size:12px;color:#4f8b50}
.sp-main-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:18px;margin-bottom:18px}.sp-main-grid.lower{grid-template-columns:1.2fr 1fr}
.sp-panel{padding:23px 24px}.sp-panel-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.sp-panel-head h2{font-size:18px;margin:0;font-weight:600;letter-spacing:-.4px}.sp-panel-head a{font-size:12px;color:#555;text-decoration:none;margin-top:4px}
.sp-chart{height:260px;position:relative;padding:8px 0 0 38px}.sp-chart-labels{position:absolute;left:0;top:8px;bottom:28px;display:flex;flex-direction:column;justify-content:space-between;font-size:10px;color:#aaa}.sp-chart svg{width:100%;height:220px;color:#1d1d1e}.sp-chart-x{display:flex;justify-content:space-between;color:#aaa;font-size:10px;margin:0 4px}
.sp-account-list{display:grid;gap:4px}.sp-account{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #eee}.sp-account:last-child{border-bottom:0}.sp-account-icon,.sp-tx-icon{width:36px;height:36px;border-radius:10px;background:#f3f3f3;display:grid;place-items:center;font-weight:600}.sp-account strong,.sp-transaction strong{font-size:13px;display:block}.sp-account small,.sp-transaction small{display:block;color:#999;font-size:11px;margin-top:4px}.sp-account b,.sp-transaction b{font-size:12px;font-weight:600}
.sp-transaction{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #eee}.sp-transaction:last-child{border-bottom:0}.sp-tx-icon{border-radius:50%;font-size:13px}
.sp-document{display:flex;align-items:center;gap:12px;text-decoration:none;color:#222;padding:15px 0;border-bottom:1px solid #eee}.sp-document:last-child{border-bottom:0}.sp-document>span{width:35px;height:35px;border-radius:9px;background:#f3f3f3;display:grid;place-items:center}.sp-document div{flex:1}.sp-document strong{font-size:12px;display:block}.sp-document small{font-size:10px;color:#999;display:block;margin-top:4px}.sp-document b{font-size:16px;font-weight:400;color:#777}
@media(max-width:1000px){.sp-sidebar{width:190px}.sp-summary-grid{grid-template-columns:1fr 1fr}.sp-balance-card{grid-column:1/-1}.sp-main-grid,.sp-main-grid.lower{grid-template-columns:1fr}}
@media(max-width:700px){.sp-dash-header{padding:0 16px;height:64px}.sp-user-name{display:none}.sp-dash-shell{display:block}.sp-sidebar{position:fixed;z-index:30;left:0;right:0;bottom:0;top:auto;width:100%;height:66px;min-height:0;border-right:0;border-top:1px solid #e6e7e9;padding:6px 8px;display:block}.sp-sidebar nav{display:flex;justify-content:space-around;gap:2px}.sp-sidebar nav a{padding:7px 8px;display:flex;flex-direction:column;gap:2px;font-size:9px}.sp-sidebar nav a span{font-size:16px}.sp-sidebar-bottom{display:none}.sp-dash-content{padding:22px 14px 88px}.sp-welcome-row{align-items:flex-start;display:block}.sp-primary-action{margin-top:16px}.sp-summary-grid{grid-template-columns:1fr}.sp-balance-card{grid-column:auto}.sp-big-number{font-size:31px}.sp-panel{padding:19px 17px}.sp-chart{height:225px}.sp-chart svg{height:185px}.sp-account{grid-template-columns:35px 1fr auto}.sp-account b{font-size:11px}.sp-header-actions{gap:5px}}

.sp-empty-state{padding:28px 0;color:#777;text-align:center;font-size:14px}

/* Account Suspended Page (Post-login) */
.sp-suspended-page {
  min-height: 100vh;
  width: 100%;
  background-color: #f4f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sp-suspended-container {
  max-width: 540px;
  width: 100%;
  text-align: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.sp-suspended-title {
  font-size: 24px;
  font-weight: 700;
  color: #0c0c0c;
  margin: 0 0 16px 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.sp-suspended-text {
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.42;
  margin: 0 0 28px 0;
  letter-spacing: -0.1px;
}

.sp-suspended-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 32px;
  background-color: #eae5dc;
  color: #2c2925;
  font-size: 16px;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.sp-suspended-btn:hover {
  background-color: #e0dad0;
}

