* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Work Sans', sans-serif;
  background: #ececec;
  color: #1f1f1f;
}

.page {
  min-height: 100vh;
}

.topbar {
  height: 52px;
  background: #fedc00;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.logo {
  max-height: 22px;
  width: auto;
}

.layout {
  display: flex;
  min-height: calc(100vh - 52px);
}

.sidebar {
  width: 210px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.menu__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #7a7a7a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
}

.menu__item::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #fedc00;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.menu__item:hover::before,
.menu__item--active::before {
  opacity: 1;
}

.menu__item--active {
  color: #141414;
  font-weight: 700;
}

.content {
  flex: 1;
  padding: 32px 40px;
}

.title {
  margin: 0 0 32px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.card {
  padding: 32px 28px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  align-items: center;
}

.card--wide {
  grid-column: span 2;
}
.login-page {
  background: #f4f4f4;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.login-wrapper {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 20px;
  width: min(1040px, calc(100% - 32px));
  align-items: stretch;
  min-height: calc(100vh - 24px);
}

.login-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 400px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.login-logo {
  max-width: 100px;
  width: 100%;
  height: auto;
}

.login-footer-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.footer-logo {
  max-width: 90px;
  width: 100%;
  height: auto;
}

.login-subtitle {
  color: #1f1f1f;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #f1d975;
  background: #fff;
  color: #141414;
  font-size: 15px;
  outline: none;
}

.form-input:focus {
  border-color: #d4b211;
  box-shadow: 0 0 0 4px rgba(254, 220, 0, 0.12);
}

.form-error {
  min-height: 20px;
  color: #b10404;
  font-size: 13px;
}

.login-button {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
}

.login-footer {
  margin: 0;
  font-size: 13px;
  color: #6b6b6b;
  text-align: center;
}

.login-visual {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9f9f9 0%, #ececec 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: auto;
}

.login-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .login-wrapper {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .login-card,
  .login-visual {
    min-height: auto;
  }
  
  .login-card {
    width: min(400px, 100%);
    margin: 0 auto;
  }

  .login-visual {
    display: none;
  }
}

@media (max-width: 620px) {
  .login-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .login-subtitle {
    font-size: 12px;
  }
}
.card h2 {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0 0 24px;
  color: #3e3e3e;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: #fedc00;
  color: #111111;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 23, 23, 0.12);
}

.button__arrow {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 800px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .content {
    padding: 24px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card--wide {
    grid-column: span 1;
  }
}
