:root {
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --primary-dark: #1d4ed8;
  --text: navy;
  --text-light: #6b7280;
  --background: #f9fafb;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 255, 0.2);
  --transition: all 0.2s ease-in-out;
  --radius: 1rem;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 100vh;
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  position: relative;
  background-color: white;
  padding: 30px 0;
  box-sizing: border-box;
}

.container {
  text-align: center;
  padding: 10px 35px;

  border: 1px solid #ddd;
  border-radius: 17px;
  background-color: white;
  box-shadow: 0 10px 15px rgba(0, 0, 255, 0.2);
  width: 100%;
  max-width: 400px;
}

.container img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-bottom: 5px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: navy;
  text-align: left;
}

input[type="tel"],
input[type="password"] {
  width: 90%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  transition: var(--transition);
}

input[type="tel"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.error-message {
  color: #b91c1c;
  margin-bottom: 20px;
  padding: 10px 14px;
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  align-items: center;
}

.error-message::before {
  content: "⚠️";
  font-size: 16px;
  line-height: 1;
}

.error-message.show {
  display: flex;
}

.button-container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

input[type="submit"] {
  background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
  color: white;
  padding: 12px 25px;
  border: 1px solid #1e40af;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  font-size: 16px;
  flex-grow: 1;
  transition: background-color 0.3s;
}

input[type="submit"]:hover {
  background: linear-gradient(to bottom, #2563eb, #1e3a8a);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.create-account {
  background: linear-gradient(to bottom, #fbbf24, #fb923c);
  color: white;
  padding: 12px 25px;
  border: 1px solid #f97316;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  flex-grow: 1;
}

.create-account:hover {
  background: linear-gradient(to bottom, #facc15, #f97316);
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.create-account:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.big,
.small {
  color: #f2a1ac;
  font-size: 25px;
  margin: 0px;
  font-weight: 700;
  font-family: "Zen Maru Gothic", sans-serif;
}

.small {
  font-size: 15px;
}

@media (max-width: 767px) {
  body {
    height: auto;
    overflow: visible;
    padding: 0;
    align-items: flex-start;
  }

  .container {
    width: 100%;
    min-height: auto;
    max-height: none;
    max-width: none;
    border: none;
    border-radius: 0;
    padding: 5px 20px 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 20px;
  }

  .container img {
    margin-top: 0px;
    margin-bottom: 0px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    max-width: 400px;
    height: auto;
  }

  input[type="tel"],
  input[type="password"] {
    margin-bottom: 15px;
  }

  .button-container {
    flex-direction: column;
    gap: 10px;
  }

  .create-account {
    padding: 12px 0;
  }
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
}

.password-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 45px;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  transition: var(--transition);
  margin-bottom: 0;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748b;
  font-size: 20px;
  user-select: none;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--primary);
}
