/*html, body {*/
/*  height: 100%;*/
/*  min-height: 100%;*/
/*}*/

/*body {*/
/*  margin: 0;*/
/*  padding: 0;*/
/*  font-family: 'Helvetica', sans-serif;*/
/*  color: #000;*/
/*}*/

/*a {*/
/*  text-decoration: none;*/
/*  color: #000;*/
/*  font-family: 'Arial', cursive;*/
/*  transition: .5s;*/
/*}*/

/*a:hover {*/
/*  color: #2c3e50;*/
/*}*/

/*form {*/
/*  text-align: center;*/
/*}*/

/*table {*/
/*  margin: auto; */
/*  font-size: 18px;*/
/*}*/

/*.color555 {*/
/*    color: #555;*/
/*}*/

/*.wrapper {*/
/*  background-image: url('../images/backgrounds/Hakodate Nightview.jpeg');*/
/*  background-size: cover;*/
/*  background-position: center;*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  min-width: 950px;*/
/*}*/

/*.login_box {*/
/*  position: relative;*/
/*  margin-right: auto;*/
/*  margin-left: auto;*/
/*  top: 14%;*/
/*  width: 45%;*/
/*  background-color: rgba(236, 240, 241, 0.85);*/
/*  border: 1px solid #bdc3c7;*/
/*  border-radius: 5px;*/
/*  padding: 5px;*/
/*}*/

/*.login_header {*/
/*  width: 100%;*/
/*  text-align: center;*/
/*  border-top-left-radius: 5px;*/
/*  border-top-right-radius: 5px;*/
/*}*/

/*.login_header h1 {*/
/*  margin-top: 0;*/
/*  margin-bottom: 0;*/
/*  font-family: 'Arial', cursive;*/
/*  font-size: 250%;*/
/*  color: #2c3e50;*/
/*}*/

/*.login_header p {*/
/*  font-size: 19px;*/
/*  font-weight: 400;*/
/*  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;*/
/*  margin: 8px 0 32px;*/
/*  color: #949494;*/
/*  text-align: center;*/
/*}*/

/*input[type='submit'] {*/
/*  background-color: #396088;*/
/*  padding: 10px 15px;*/
/*  border: none;*/
/*  border-radius: 5px;*/
/*  margin: 10px 0;*/
/*  color: #ecf0f1;*/
/*  font-family: 'Arial', cursive;*/
/*  font-size: 100%;*/
/*}*/

/*input[type='submit']:hover {*/
/*  background-color: #bd3624;*/
/*  cursor: pointer;*/
/*}*/

/*input[type='submit']:active {*/
/*  padding: 11px 14px 9px 16px;*/
/*}*/

/*input[type='text'], input[type='email'], input[type='password'] {*/
/*  margin: 5px 0;*/
/*  width: 50%;*/
/*  padding: 10px;*/
/*}*/

/*input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {*/
/*  border-color: #2c3e50;*/
/*}*/

/*input:focus {*/
/*  outline: 0;*/
/*}*/

/*#second {*/
/*  display: none;*/
/*}*/

/*.mail {*/
/*  margin: 5px 0;*/
/*  text-align: center;*/
/*  display: block;*/
/*}*/

/*.mail_title {*/
/*  font-size: 20px;*/
/*  font-weight: bold;*/
/*}*/

/*.mail_content {*/
/*  font-size: 14px;*/
/*}*/


/*Cookie Notification*/
/*#cookie-notification {*/
/*    position: fixed;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    background-color: #333;*/
/*    color: #fff;*/
/*    padding: 10px;*/
/*    text-align: center;*/
/*}*/

/*#accept-cookie {*/
/*    background-color: #fff;*/
/*    color: #333;*/
/*    border: none;*/
/*    padding: 5px 10px;*/
/*    margin-left: 10px;*/
/*    cursor: pointer;*/
/*}*/


/* Replace your existing .wrapper class with this modern background */
.wrapper {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  min-width: 950px;
  position: relative;
}

/* Add this new class for the background overlay */
.wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/backgrounds/Hakodate Nightview.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
}

/* Step 2: Modern login box styling */
.login_box {
  position: relative;
  margin-right: auto;
  margin-left: auto;
  top: 8%;
  width: 45%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Step 3: Modern input field styling */
input[type='text'], input[type='email'], input[type='password'] {
  margin: 8px 0;
  width: 70%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  outline: none;
}

input[type='text']:hover, input[type='email']:hover, input[type='password']:hover {
  border-color: #cbd5e0;
  background: rgba(255, 255, 255, 1);
}

input[type='text']:focus, input[type='email']:focus, input[type='password']:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Step 4: Modern submit button styling */
input[type='submit'] {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  margin: 20px 0;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

input[type='submit']:active {
  transform: translateY(0);
}

/* Step 5: Modern typography and header */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #2d3748;
}

.login_header {
  width: 100%;
  text-align: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-bottom: 20px;
}

.login_header h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #2d3748;
}

.login_header p {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  margin: 8px 0 32px;
  color: #718096;
  text-align: center;
}

/* Step 6: Modern links and messages */
a {
  text-decoration: none;
  color: #667eea;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Modern error message styling */
.error-message {
  color: #e53e3e;
  font-size: 14px;
  background: rgba(229, 62, 62, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #e53e3e;
  margin: 8px 0;
  font-weight: 500;
}

/* Step 7: Modern dividers and social section */
.color555 {
  color: #718096;
  font-weight: 500;
}

table {
  margin: 18px auto;
  font-size: 14px;
  width: 80%;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

/* Modern social login buttons */
.panel {
  margin: 8px 0;
}

.panel a {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 48%;
  margin: 0 1%;
}

.panel a:hover {
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

/* Step 8: Responsive design and final touches */
/* Form switching animation */
#second {
  display: none;
}

.form-slide {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .wrapper {
    min-width: auto;
    padding: 10px;
  }
  
  .login_box {
    width: 90%;
    max-width: 380px;
    padding: 30px 24px;
    top: 5%;
  }
  
  input[type='text'], input[type='email'], input[type='password'] {
    width: 85%;
    padding: 14px 16px;
  }
  
  .panel a {
    width: 100%;
    margin: 4px 0;
  }
  
  .login_header h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .login_box {
    width: 95%;
    padding: 24px 20px;
  }
  
  input[type='text'], input[type='email'], input[type='password'] {
    width: 90%;
  }
}

/* Step 9: Advanced modern touches */
/* Loading state for buttons */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Modern cookie notification */
#cookie-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(45, 55, 72, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

#accept-cookie {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

#accept-cookie:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Step 10: Final professional touches */
/* Focus indicators for accessibility */
input:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
  transition: all 0.3s ease;
}

/* Form validation styling */
input:invalid {
  border-color: #e53e3e;
}

input:valid {
  border-color: #38a169;
}

/* Better text selection */
::selection {
  background: rgba(102, 126, 234, 0.2);
  color: #2d3748;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* Enhanced form styling */
form {
  text-align: center;
  position: relative;
}

/* Better spacing for form elements */
br {
  line-height: 0;
  margin: 0;
}

/* Mobile-first approach refinements */
@media (max-width: 320px) {
  .login_box {
    padding: 20px 16px;
    border-radius: 16px;
  }
  
  input[type='text'], input[type='email'], input[type='password'] {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  #cookie-notification {
    bottom: 10px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Modern success message styling */
.success-message {
  color: #38a169;
  font-size: 14px;
  background: rgba(56, 161, 105, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #38a169;
  margin: 8px 0;
  font-weight: 500;
}