/* Login and Registration Styles */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, royalblue 0%, rebeccapurple 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Login Container */
.login-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, royalblue 0%, rebeccapurple 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.login-header h1 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.login-content {
  padding: 40px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: darkgray;
  font-size: 0.95em;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid gainsboro;
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: royalblue;
}

/* Button Group */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.form-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 1px;
}

/* Login Button - Green */
.login-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* Register Button - Blue */
.register-btn {
  background: linear-gradient(135deg, royalblue 0%, rebeccapurple 100%);
  color: white;
}

.register-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(65, 105, 225, 0.4);
}

/* Guest Button - Gray */
.guest-btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.guest-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);
}

/* Messages */
.message {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: none;
}

.message.show {
  display: block;
}

.message.success {
  background: honeydew;
  color: forestgreen;
  border: 1px solid palegreen;
}

.message.error {
  background: mistyrose;
  color: crimson;
  border: 1px solid lightpink;
}

.message.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Resend Verification Button */
.btn-resend {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.btn-resend:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.4);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Lost Password Link */
.lost-password-link {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.lost-password {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.lost-password:hover {
  color: royalblue;
  text-decoration: underline;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, royalblue 0%, rebeccapurple 100%);
  color: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3em;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ddd;
}

.modal-body {
  padding: 30px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-buttons .form-btn {
  flex: 1;
}

/* Reset Button - Green (matches Login button) */
.reset-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.reset-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* Cancel Button - Gray */
.cancel-btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.cancel-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);
}

/* Message Modal */
.message-modal {
  text-align: center;
  max-width: 350px;
}

.message-modal .modal-body {
  padding: 40px 30px;
}

.message-icon {
  font-size: 3em;
  margin-bottom: 20px;
}

.message-modal h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.message-modal p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}