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

body {
  font-family: "Quicksand", sans-serif;
  background: linear-gradient(135deg, #f97fa0 0%, #76d7ea 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.floating-hearts,
.floating-stars {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-hearts i,
.floating-stars i {
  position: absolute;
  font-size: 3rem;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
  color: #fff;
}

.floating-hearts i:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}
.floating-hearts i:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
  animation-duration: 15s;
}
.floating-hearts i:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
  animation-duration: 18s;
}
.floating-hearts i:nth-child(4) {
  left: 70%;
  animation-delay: 1s;
  animation-duration: 14s;
}
.floating-hearts i:nth-child(5) {
  left: 90%;
  animation-delay: 3s;
  animation-duration: 16s;
}

.floating-stars i:nth-child(1) {
  left: 15%;
  animation-delay: 1s;
  animation-duration: 13s;
}
.floating-stars i:nth-child(2) {
  left: 35%;
  animation-delay: 3s;
  animation-duration: 16s;
}
.floating-stars i:nth-child(3) {
  left: 55%;
  animation-delay: 0s;
  animation-duration: 14s;
}
.floating-stars i:nth-child(4) {
  left: 75%;
  animation-delay: 2s;
  animation-duration: 17s;
}
.floating-stars i:nth-child(5) {
  left: 85%;
  animation-delay: 4s;
  animation-duration: 15s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.auth-card {
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 50px 40px;
  max-width: 500px;
  width: 100%;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-logo {
  margin-top: -2.5rem;
  text-align: center;
}

.auth-logo img {
  width: 150px;
  height: auto;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.auth-logo img:hover {
  transform: scale(1.05);
}

.auth-header {
  text-align: center;
  margin-bottom: 35px;
}

.auth-header h1 {
  font-family: "Unbounded", cursive;
  font-size: 32px;
  font-weight: 700;
  color: #6b3e2e;
  margin-bottom: 10px;
  word-break: break-word;
}

.auth-header p {
  font-size: 16px;
  color: #c79a73;
  font-weight: 500;
}

.error-message,
.success-message {
  padding: 15px 20px;
  border-radius: 15px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: shake 0.5s ease-in-out;
}

.error-message {
  background: #ffe5e5;
  color: #d32f2f;
  border: 2px solid #ffcdd2;
}
.success-message {
  background: #e8f5e9;
  color: #388e3c;
  border: 2px solid #c8e6c9;
}

.error-message i,
.success-message i {
  font-size: 18px;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #6b3e2e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: #f97fa0;
  font-size: 16px;
}

.form-group input {
  padding: 15px 20px;
  border: 2px solid #fdd9c0;
  border-radius: 15px;
  font-family: "Quicksand", sans-serif;
  font-size: 15px;
  color: #6b3e2e;
  transition: all 0.3s ease;
  background: #ffffff;
  width: 100%;
}

.form-group input:focus {
  outline: none;
  border-color: #f97fa0;
  box-shadow: 0 0 0 4px rgba(249, 127, 160, 0.1);
}

.form-group input::placeholder {
  color: #d9b08c;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  cursor: pointer;
  color: #f97fa0;
  transition: color 0.3s;
  font-size: 15px;
}

.toggle-password:hover {
  color: #ce5273;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.signin-options {
  justify-content: flex-end;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #6b3e2e;
  cursor: pointer;
  line-height: 1.5;
}

#agreeCheckbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #f97fa0;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  cursor: not-allowed;
  background: #fff;
  margin-top: 2px;
}

#agreeCheckbox:checked {
  background-color: #f97fa0;
  border-color: #f97fa0;
}

#agreeCheckbox:checked::after {
  content: "✓";
  color: white;
  font-size: 14px;
  position: absolute;
  top: -1px;
  left: 3px;
  font-weight: 700;
}

#agreeCheckbox:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.terms-check span a {
  color: #f97fa0;
  text-decoration: none;
  font-weight: 600;
}

.terms-check span a:hover {
  text-decoration: underline;
}

.forgot-password {
  font-size: 14px;
  color: #f97fa0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.forgot-password:hover {
  color: #6b3e2e;
}

.btn-submit {
  background: #f97fa0;
  color: #ffffff;
  border: none;
  padding: 16px 30px;
  border-radius: 15px;
  font-family: "Unbounded", cursive;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 8px 20px rgba(249, 127, 160, 0.3);
  width: 100%;
}

.btn-submit:hover {
  background: #e56b8d;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(249, 127, 160, 0.4);
}

.btn-submit:active {
  background: #f97fa0;
  transform: translateY(0);
}

.btn-submit i {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.btn-submit:hover i {
  transform: translateX(5px);
}

.oauth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0 16px;
  gap: 12px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.oauth-divider span {
  color: #999;
  font-size: 14px;
  font-weight: 500;
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #f97fa0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-google {
  color: #6b3e2e;
  background: #fff;
  border-color: #f97fa0;
}

.btn-google:hover {
  background: #fff;
  border-color: #eb6a8c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google i {
  font-size: 18px;
  color: #f97fa0;
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #fdd9c0;
}

.auth-footer p {
  font-size: 15px;
  color: #6b3e2e;
  font-weight: 500;
}

.auth-footer a {
  color: #f97fa0;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #6b3e2e;
  text-decoration: underline;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #6b3e2e;
  cursor: pointer;
  z-index: 10;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #f97fa0;
  background: #fff5f8;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  color: #6b3e2e;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-family: "Unbounded", cursive;
  word-break: break-word;
}

.modal-header p {
  color: #c79a73;
  font-size: 1rem;
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.modal-message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.modal-message.error {
  background-color: #ffe0e6;
  color: #c41e3a;
}
.modal-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
}
.modal-message.info {
  background-color: #e3f2fd;
  color: #1565c0;
}

.step {
  display: block;
}

.step-indicator {
  text-align: center;
  font-weight: 600;
  color: #6b3e2e;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.code-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: nowrap;
}

.code-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #fdd9c0;
  border-radius: 10px;
  color: #6b3e2e;
  transition: all 0.3s ease;
  flex-shrink: 1;
  min-width: 0;
}

.code-input:focus {
  outline: none;
  border-color: #f97fa0;
  box-shadow: 0 0 0 4px rgba(249, 127, 160, 0.1);
}

.code-input.filled {
  background-color: #fffafc;
  border-color: #f97fa0;
}

.timer {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin-top: 10px;
}

.resend-link {
  text-align: center;
  margin-top: 15px;
}
.resend-link.disabled {
  opacity: 0.6;
  pointer-events: none;
}
.resend-link a {
  color: #f97fa0;
  text-decoration: none;
  font-weight: 600;
}
.resend-link a:hover {
  text-decoration: underline;
}

.btn-verify {
  background-color: #f97fa0;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
}

.btn-verify:hover:not(:disabled) {
  background-color: #e86d93;
}
.btn-verify:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 1440px) {
  .auth-card {
    max-width: 560px;
    padding: 60px 50px;
  }

  .auth-header h1 {
    font-size: 36px;
  }
  .auth-header p {
    font-size: 18px;
  }

  .auth-logo img {
    width: 170px;
  }

  .form-group input {
    font-size: 16px;
  }

  .btn-submit {
    font-size: 18px;
    padding: 18px 35px;
  }
}

@media (max-width: 1024px) {
  .auth-card {
    max-width: 480px;
  }
  .auth-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .auth-container {
    padding: 30px 16px;
  }

  .auth-card {
    padding: 40px 25px;
    border-radius: 25px;
  }

  .auth-header {
    margin-bottom: 28px;
  }
  .auth-header h1 {
    font-size: 26px;
  }
  .auth-header p {
    font-size: 14px;
  }

  .auth-logo img {
    width: 130px;
  }

  .form-group input {
    padding: 13px 16px;
    font-size: 14px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .modal-content {
    padding: 35px 25px;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .code-input {
    width: 46px;
    height: 56px;
    font-size: 1.3rem;
  }
  .code-input-group {
    gap: 8px;
  }

  .floating-hearts i,
  .floating-stars i {
    font-size: 2rem;
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 20px 15px;
    min-height: calc(100vh - 60px);
  }

  .auth-card {
    padding: 30px 18px;
    border-radius: 20px;
  }

  .auth-logo {
    margin-top: -2rem;
  }
  .auth-logo img {
    width: 110px;
  }

  .auth-header {
    margin-bottom: 22px;
  }
  .auth-header h1 {
    font-size: 22px;
  }
  .auth-header p {
    font-size: 13px;
  }

  .auth-form {
    gap: 16px;
  }

  .form-group input {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 12px;
  }

  .form-group label {
    font-size: 13px;
  }

  .btn-submit {
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 12px;
    gap: 8px;
  }

  .btn-submit i {
    font-size: 15px;
  }

  .btn-oauth {
    font-size: 14px;
    padding: 10px 14px;
  }
  .btn-oauth i {
    font-size: 16px;
  }

  .auth-footer {
    margin-top: 22px;
    padding-top: 18px;
  }
  .auth-footer p {
    font-size: 13px;
  }

  .modal-content {
    padding: 30px 16px;
    border-radius: 16px;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }
  .modal-header p {
    font-size: 0.88rem;
  }

  .code-input {
    width: 40px;
    height: 50px;
    font-size: 1.2rem;
    border-radius: 8px;
  }
  .code-input-group {
    gap: 6px;
  }

  .btn-verify {
    font-size: 0.95rem;
    padding: 11px 20px;
  }

  .step-indicator {
    font-size: 0.88rem;
  }

  .floating-hearts i,
  .floating-stars i {
    display: none;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 26px 14px;
  }

  .auth-header h1 {
    font-size: 19px;
  }
  .auth-header p {
    font-size: 12px;
  }

  .auth-logo img {
    width: 95px;
  }

  .form-group input {
    padding: 11px 12px;
    font-size: 13px;
  }

  .form-group label {
    font-size: 12px;
    gap: 6px;
  }

  .terms-check {
    font-size: 12px;
    gap: 6px;
  }

  .forgot-password {
    font-size: 12px;
  }

  .btn-submit {
    font-size: 13px;
    padding: 13px 16px;
  }

  .btn-oauth {
    font-size: 13px;
    padding: 9px 12px;
  }

  .auth-footer p {
    font-size: 12px;
  }

  .code-input {
    width: 36px;
    height: 44px;
    font-size: 1.1rem;
  }
  .code-input-group {
    gap: 5px;
  }

  .modal-content {
    padding: 24px 12px;
  }
  .modal-header h2 {
    font-size: 1.15rem;
  }
}

@media (max-width: 320px) {
  .auth-container {
    padding: 14px 10px;
  }

  .auth-card {
    padding: 22px 12px;
    border-radius: 16px;
  }

  .auth-logo {
    margin-top: -1.5rem;
  }
  .auth-logo img {
    width: 85px;
  }

  .auth-header {
    margin-bottom: 16px;
  }
  .auth-header h1 {
    font-size: 17px;
  }
  .auth-header p {
    font-size: 11px;
  }

  .auth-form {
    gap: 13px;
  }

  .form-group input {
    padding: 10px 11px;
    font-size: 12px;
    border-radius: 10px;
  }

  .form-group label {
    font-size: 11px;
  }

  .terms-check {
    font-size: 11px;
    gap: 5px;
  }

  #agreeCheckbox {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .forgot-password {
    font-size: 11px;
  }

  .btn-submit {
    font-size: 11px;
    padding: 11px 14px;
    border-radius: 10px;
    gap: 6px;
  }

  .btn-submit i {
    font-size: 13px;
  }

  .btn-oauth {
    font-size: 12px;
    padding: 8px 10px;
    gap: 7px;
  }
  .btn-oauth i {
    font-size: 14px;
  }

  .oauth-divider {
    margin: 16px 0 12px;
  }
  .oauth-divider span {
    font-size: 12px;
  }

  .auth-footer {
    margin-top: 16px;
    padding-top: 14px;
  }
  .auth-footer p {
    font-size: 11px;
  }

  .code-input {
    width: 32px;
    height: 40px;
    font-size: 1rem;
    border-radius: 6px;
  }
  .code-input-group {
    gap: 4px;
    margin: 14px 0;
  }

  .modal-content {
    padding: 20px 10px;
    border-radius: 14px;
  }
  .modal-header h2 {
    font-size: 1.05rem;
  }
  .modal-header p {
    font-size: 0.8rem;
  }

  .btn-verify {
    font-size: 0.88rem;
    padding: 10px 16px;
  }

  .step-indicator {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }

  .timer {
    font-size: 0.8rem;
  }
}
