:root {
     --ink: #172033;
     --muted: #607087;
     --line: #d9e1ec;
     --surface: #ffffff;
     --surface-soft: #f6f8fb;
     --primary: #0f6c81;
     --primary-dark: #0a4f60;
     --accent: #e8a327;
     --danger: #b42318;
     --danger-bg: #fff2f0;
     --shadow: 0 24px 70px rgba(23, 32, 51, 0.14);
}

* {
     box-sizing: border-box;
}

body {
     margin: 0;
     min-height: 100vh;
     font-family: Arial, Sans-Serif;
     color: var(--ink);
     background: var(--surface-soft);
}

.clearfix:before, .clearfix:after{
     content: "";
     display: table;
}

.clearfix:after{
     clear: both;
}

a{
     color: var(--primary);
     text-decoration:none;
}

a:hover{
     text-decoration:underline;
}

.auth-page {
     display: grid;
     place-items: center;
     padding: 32px 18px;
     background:
          linear-gradient(135deg, rgba(15, 108, 129, 0.10), rgba(232, 163, 39, 0.12)),
          var(--surface-soft);
}

.app-page {
     padding: 32px 18px;
     background:
          linear-gradient(180deg, rgba(15, 108, 129, 0.12), rgba(246, 248, 251, 0) 280px),
          var(--surface-soft);
}

.auth-shell,
.welcome-shell {
     width: min(100%, 980px);
}

.auth-shell {
     display: grid;
     grid-template-columns: minmax(0, 1fr) 420px;
     gap: 24px;
     align-items: stretch;
}

.auth-shell.compact {
     grid-template-columns: minmax(0, 460px);
     justify-content: center;
}

.brand-panel,
.form,
.welcome-card {
     background: rgba(255, 255, 255, 0.94);
     border: 1px solid rgba(217, 225, 236, 0.9);
     border-radius: 8px;
     box-shadow: var(--shadow);
}

.brand-panel {
     padding: 44px;
     display: flex;
     flex-direction: column;
     justify-content: center;
}

.form {
     width: 100%;
     margin: 0;
     padding: 34px;
}

.site-logo {
     width: 118px;
     max-width: 100%;
     height: auto;
     margin-bottom: 28px;
}

.eyebrow {
     margin: 0 0 10px;
     color: var(--primary);
     font-size: 13px;
     font-weight: 700;
     letter-spacing: 0;
     text-transform: uppercase;
}

h1,
h2,
h3,
p {
     margin-top: 0;
}

h1 {
     margin-bottom: 16px;
     font-size: 36px;
     line-height: 1.12;
}

h2 {
     margin-bottom: 10px;
     font-size: 24px;
     line-height: 1.25;
}

.lead {
     color: var(--muted);
     font-size: 17px;
     line-height: 1.65;
}

.form-intro {
     color: var(--muted);
     line-height: 1.55;
     margin-bottom: 22px;
}

.help-list {
     margin: 28px 0 0;
     padding: 0;
     list-style: none;
}

.help-list li {
     position: relative;
     padding-left: 24px;
     margin-top: 14px;
     color: #304259;
     line-height: 1.5;
}

.help-list li:before {
     content: "";
     position: absolute;
     left: 0;
     top: 8px;
     width: 8px;
     height: 8px;
     border-radius: 50%;
     background: var(--accent);
}

label {
     display: block;
     margin: 16px 0 7px;
     color: #304259;
     font-size: 14px;
     font-weight: 700;
}

input[type='text'], input[type='email'],
input[type='password'] {
     width: 100%;
     border-radius: 6px;
     border: 1px solid var(--line);
     padding: 13px 14px;
     color: var(--ink);
     font-size: 15px;
     background: #fff;
     transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type='text']:focus, input[type='email']:focus,
input[type='password']:focus {
     outline: none;
     border-color: var(--primary);
     box-shadow: 0 0 0 4px rgba(15, 108, 129, 0.14);
}

input[type='submit'],
.button {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-height: 46px;
     padding: 12px 22px;
     color: #fff;
     background-color: var(--primary);
     font-size: 16px;
     font-weight: 700;
     border: 1px solid var(--primary);
     border-radius: 6px;
     margin-top: 22px;
     cursor:pointer;
     text-decoration: none;
     transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

input[type='submit'] {
     width: 100%;
}

input[type='submit']:hover,
.button.primary:hover {
     background-color: var(--primary-dark);
     border-color: var(--primary-dark);
     text-decoration: none;
     transform: translateY(-1px);
}

.button.secondary {
     color: var(--primary);
     background: #fff;
}

.button.secondary:hover {
     color: var(--primary-dark);
     border-color: var(--primary-dark);
     text-decoration: none;
}

.full-width {
     width: 100%;
}

.notice {
     padding: 12px 14px;
     border-radius: 6px;
     line-height: 1.45;
     margin-bottom: 18px;
}

.notice.error {
     color: var(--danger);
     background: var(--danger-bg);
     border: 1px solid rgba(180, 35, 24, 0.2);
}

.welcome-shell {
     margin: 0 auto;
}

.content-shell {
     width: min(100%, 980px);
     margin: 0 auto;
}

.top-nav {
     display: flex;
     justify-content: flex-end;
     gap: 12px;
     margin-bottom: 18px;
}

.top-nav a {
     display: inline-flex;
     align-items: center;
     min-height: 38px;
     padding: 8px 13px;
     color: var(--primary);
     background: rgba(255, 255, 255, 0.84);
     border: 1px solid var(--line);
     border-radius: 6px;
     font-weight: 700;
}

.top-nav a:hover {
     color: var(--primary-dark);
     border-color: var(--primary-dark);
     text-decoration: none;
}

.content-panel {
     padding: 38px;
     background: rgba(255, 255, 255, 0.94);
     border: 1px solid rgba(217, 225, 236, 0.9);
     border-radius: 8px;
     box-shadow: var(--shadow);
}

.page-list {
     display: grid;
     gap: 12px;
     margin-top: 26px;
}

.page-list-item {
     display: flex;
     align-items: center;
     justify-content: space-between;
     min-height: 54px;
     padding: 15px 18px;
     color: var(--ink);
     background: #fff;
     border: 1px solid var(--line);
     border-radius: 7px;
     font-weight: 700;
}

.page-list-item:after {
     content: ">";
     color: var(--primary);
}

.page-list-item:hover {
     color: var(--primary-dark);
     border-color: var(--primary);
     text-decoration: none;
}

.welcome-card {
     padding: 44px;
}

.action-row {
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     margin: 10px 0 30px;
}

.action-row .button {
     margin-top: 0;
}

.info-panel {
     padding: 22px;
     border-radius: 8px;
     background: #eef6f8;
     border: 1px solid #cde5eb;
}

.info-panel h2 {
     font-size: 20px;
}

.info-panel p {
     margin-bottom: 0;
     color: #304259;
     line-height: 1.6;
}

.signed-out-card {
     text-align: center;
}

.signed-out-card .site-logo {
     margin-left: auto;
     margin-right: auto;
}

@media (max-width: 820px) {
     .auth-shell {
          grid-template-columns: 1fr;
     }

     .brand-panel,
     .form,
     .welcome-card,
     .content-panel {
          padding: 28px;
     }

     .top-nav {
          justify-content: flex-start;
          flex-wrap: wrap;
     }

     h1 {
          font-size: 30px;
     }
}
