:root {
  --primary: #1a2ca3;
  --secondary: #0d1a63;
  --text: #fff7cd;
  --bg: #f68048;
  --light: #2845d6;
  --main-font: Arial, sans-serif;
}

.close-3 {
  background: none;
  border: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--main-font);
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#login {
  background-color: var(--bg);
  color: #ffff;
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
}

.register-card {
  background: #adb7e7;
  padding: 35px 40px;
  width: 450px;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
  animation: pop 0.25s ease;
  display: flex;
  flex-direction: column;
}

.field-error {
  display: block;
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
  min-height: 16px;
}

.field input.input-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.error-message {
  background-color: #ffe5e5;
  color: #cc0000;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

.field input.input-ok {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.card-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.card-subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 26px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
}

.field input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: var(--main-font);
  transition: 0.2s;
  outline: none;
}

.field input:focus {
  border-color: var(--light);
  box-shadow: 0 0 0 3px rgba(40, 69, 214, 0.12);
}

.field input::placeholder {
  color: #aaa;
}

.register-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: var(--light);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.25s;
  font-family: var(--main-font);
}

.register-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 26, 99, 0.3);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
}

.divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid #eee;
}
.divider span {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
}

.login-link {
  text-align: center;
  font-size: 13px;
  color: #555;
}
.login-link a {
  color: var(--bg);
  font-weight: bold;
  text-decoration: none;
}
.login-link a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .register-card {
    width: 100%;
    padding: 25px 20px;
  }
}
