:root{
  --bg:#fff3e6;
  --card:#ffffff;
  --sidebar1:#f05a0a;
  --sidebar2:#b9360b;
  --text:#17233d;
  --muted:#6b7280;
  --line:#ead8c7;
  --accent:#f05a0a;
  --accent-dark:#8f2e0d;
  --success:#178a55;
  --danger:#c0392b;
  --shadow:0 10px 30px rgba(0,0,0,.10);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{color:#12356b;text-decoration:none}
a:hover{text-decoration:underline}

#sidebar{
  position:fixed;
  top:0;
  left:0;
  width:260px;
  height:100vh;
  padding:22px 18px;
  background:linear-gradient(180deg,var(--sidebar1),var(--sidebar2));
  color:#fff;
  overflow:auto;
  box-shadow:var(--shadow);
}

#sidebar img{
  max-width:170px;
  display:block;
  margin-bottom:20px;
}

#sidebar a{
  display:block;
  color:#fff;
  padding:12px 14px;
  margin:6px 0;
  border-radius:12px;
  background:rgba(255,255,255,.10);
}

#sidebar a:hover{
  background:rgba(255,255,255,.18);
  text-decoration:none;
}

#content{
  margin-left:280px;
  padding:28px;
}

h1,h2,h3{
  margin-top:0;
  color:var(--text);
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
  margin-bottom:24px;
}

table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

th{
  background:#fff1e8;
  color:var(--text);
  text-align:left;
  padding:14px;
  border-bottom:1px solid var(--line);
}

td{
  padding:12px 14px;
  border-bottom:1px solid #f0e5da;
}

tr:last-child td{border-bottom:none}

input[type="text"],
input[type="password"],
select{
  width:100%;
  max-width:360px;
  padding:12px 14px;
  border:1px solid #d8c7b8;
  border-radius:12px;
  background:#fff;
  font-size:14px;
}

button,
input[type="submit"]{
  background:linear-gradient(90deg,var(--accent),#ff7a1a);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:12px 18px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(240,90,10,.25);
}

button:hover,
input[type="submit"]:hover{
  filter:brightness(.97);
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#fff1e8;
  color:var(--accent-dark);
}

.flash{
  padding:14px 16px;
  border-radius:12px;
  margin:0 0 18px 0;
  font-weight:600;
}

.flash.ok{
  background:#eaf8f0;
  color:var(--success);
  border:1px solid #b8e5c8;
}

.flash.err{
  background:#fdeceb;
  color:var(--danger);
  border:1px solid #f3c2bd;
}

/* login page */
.login-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  background:
    radial-gradient(circle at top left, #f05a0a 0%, #6d1f0d 38%, #24110c 100%);
}

.login-shell{
  width:min(1100px,100%);
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:0;
  background:rgba(27,13,8,.75);
  border:1px solid rgba(255,255,255,.15);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}

.login-left{
  background:linear-gradient(180deg,#f39a23,#7e1e0a 75%, #140905);
  color:#fff;
  padding:40px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.login-left img{
  max-width:260px;
}

.login-left h2{
  color:#fff;
  font-size:42px;
  line-height:1.1;
  margin:0;
}

.login-right{
  padding:46px 40px;
  background:rgba(20,12,8,.55);
  color:#fff;
}

.login-right h1{
  color:#fff;
  margin-bottom:10px;
}

.login-right p{
  color:#d8c4b8;
}

.login-right label{
  display:block;
  margin:14px 0 6px;
  font-weight:700;
}

.login-right input[type="text"],
.login-right input[type="password"]{
  width:100%;
  max-width:none;
  background:rgba(255,255,255,.03);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}

.login-right .flash{
  margin-top:18px;
}

.login-right button{
  width:100%;
  margin-top:20px;
  font-size:16px;
}

.login-footer{
  margin-top:18px;
  color:#b9a79a;
  font-size:13px;
}

@media (max-width: 900px){
  .login-shell{grid-template-columns:1fr}
  #sidebar{
    position:static;
    width:auto;
    height:auto;
  }
  #content{
    margin-left:0;
    padding:16px;
  }
}

/* MAILUTILS_CONTENT_CARD_V1 */

#content {
    margin-left: 290px;
    margin-top: 28px;
    margin-right: 28px;
    margin-bottom: 28px;
    padding: 28px;

    min-height: calc(100vh - 56px);

    background: rgba(255,255,255,.96);

    border: 1px solid rgba(184,105,54,.12);
    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(68,25,7,.10);
}

#content h3 {
    font-size: 24px;
    margin-bottom: 22px;
    color: #17233d;
}

#content table {
    margin-top: 16px;
}

#content table,
#content th,
#content td {
    border: 0 !important;
}

#content th {
    background: #fff0e4;
    color: #17233d;
}

#content tr:hover td {
    background: #fff9f4;
}

#content code {
    display: inline-block;
    padding: 8px 12px;
    background: #fff0e4;
    color: #8f2e0d;
    border-radius: 8px;
    font-weight: 700;
}

@media (max-width: 900px) {
    #content {
        margin: 16px;
        min-height: auto;
    }
}

/* END MAILUTILS_CONTENT_CARD_V1 */
