@font-face {
  font-family: 'Open Sans';
  src: url('/static/fonts/opensans-regular.woff') format('woff'),
       url('/static/fonts/opensans-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F5F5F5;
  font-family: 'Open Sans', 'Open Sans Fallback Mac', 'Open Sans Fallback And', 'Open Sans Fallback Win', system-ui, sans-serif;
  color: #333;
}

.card {
  background: #fff;
  padding: 48px 40px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.logo {
  margin-bottom: 24px;
}

.logo img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

h1 {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 24px 0;
  color: #333;
}

p {
  margin: 0 0 24px 0;
  color: #555;
  font-size: 15px;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background-color: #FF6700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #e55c00;
}

.btn-secondary {
  background-color: #5caa40;
}

.btn-secondary:hover {
  background-color: #4d8f35;
}

form {
  text-align: left;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.required::after {
  content: ' *';
  color: #FF6700;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #FF6700;
}

.error {
  background-color: rgb(248, 206, 70);
  color: #5a4a00;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

.footer {
  margin-top: 32px;
  font-size: 12px;
  color: #888;
  text-align: center;
}

.logout-link {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 14px;
  color: #FF6700;
  text-decoration: none;
}

.logout-link:hover {
  text-decoration: underline;
}
