@font-face {
  font-family: "Trade Gothic Next W01";
  src: url("/fonts/trade-gothic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trade Gothic Next W01", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #231f20;
  background-color: #f2f1f1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-style: none;
}

a {
  color: #0686f3;
  text-decoration: none;
}

a:hover {
  color: #056bc1;
  text-decoration: underline;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e2e5;
  padding: 2.4rem 2rem;
}

.site-header__inner {
  max-width: 120rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  height: 4.8rem;
  width: auto;
}

.site-header__tagline {
  color: #4d4d4d;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.page-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.8rem 2rem 6rem;
}

.portal-card {
  width: 100%;
  max-width: 48rem;
  background: #ffffff;
  border: 1px solid #e0e2e5;
  box-shadow: 0 2px 8px rgba(35, 31, 32, 0.08);
}

.portal-card__header {
  padding: 2.4rem 3.2rem 1.6rem;
  border-bottom: 1px solid #e0e2e5;
}

.portal-card__title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: #231f20;
}

.portal-card__body {
  padding: 3.2rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #231f20;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #a8a9aa;
  border-radius: 0;
  font-size: 1.6rem;
  color: #231f20;
  background: #ffffff;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: #326b3a;
  box-shadow: 0 0 0 1px #326b3a;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 1.2rem 2.4rem;
  border: 1px solid #326b3a;
  border-radius: 3rem;
  background-color: #326b3a;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #26502d;
  border-color: #26502d;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid #4d4d4d;
  border-radius: 3rem;
  background: #ffffff;
  color: #4d4d4d;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #f2f1f1;
  text-decoration: none;
  color: #231f20;
}

.alert-error {
  margin-bottom: 2rem;
  padding: 1.2rem 1.6rem;
  background: #fff5f5;
  border: 1px solid #e8b4b4;
  color: #8b1a1a;
  font-size: 1.4rem;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid #e0e2e5;
}

.file-list__item:last-child {
  border-bottom: none;
}

.file-list__name {
  font-size: 1.6rem;
  color: #231f20;
  word-break: break-all;
}

.file-list__meta {
  font-size: 1.3rem;
  color: #a8a9aa;
  margin-top: 0.2rem;
}

.file-list__empty {
  color: #4d4d4d;
  font-size: 1.5rem;
  margin: 0;
}

.portal-card__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.6rem;
}

.site-footer {
  margin-top: auto;
  padding: 2.4rem 2rem;
  text-align: center;
  font-size: 1.2rem;
  color: #a8a9aa;
  border-top: 1px solid #e0e2e5;
  background: #ffffff;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
