/* Auth Pages - Anime Theme */

/* Main Container */
main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  main {
    min-height: 100vh;
    padding: 1rem 0.5rem;
    align-items: flex-start;
    padding-top: 1rem;
  }
  
  .auth-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0.5rem 0.25rem;
    padding-top: 0.5rem;
  }
  
  .auth-card {
    padding: 1rem 0.5rem;
  }
}

/* Clean Anime Background */
.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--c-surface);
}

/* Clean anime style - no floating elements */

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* Minimalistic Auth Form */
.auth-card {
  background: transparent;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: fadeIn 0.6s ease-out;
  box-sizing: border-box;
}





@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--c-primary);
  box-shadow: var(--shadow-md);
  animation: pulse 2s ease-in-out infinite;
}

.avatar-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 193, 248, 0.3) 0%, transparent 70%);
  animation: glow 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.auth-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  background: linear-gradient(135deg, #ff85a2, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px 0;
  text-align: center;
}

.auth-subtitle {
  color: var(--c-text-muted);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  margin: 0 0 2rem 0;
  opacity: 0.8;
  text-align: center;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  position: relative;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--c-primary);
  font-size: var(--font-size-lg);
  z-index: 2;
  transition: all 0.3s ease;
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(130, 216, 231, 0.05);
  border: 2px solid rgba(130, 216, 231, 0.3);
  border-radius: 16px;
  color: var(--c-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.auth-form textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 120px;
  overflow-y: auto;
}

.auth-form input:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: rgba(130, 216, 231, 0.1);
  box-shadow: 0 4px 15px rgba(130, 216, 231, 0.3);
}

.auth-form input:focus + .password-toggle,
.auth-form input:focus ~ .input-underline {
  transform: scaleX(1);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: var(--c-text-muted);
  opacity: 0.7;
}

.input-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 2;
}

.password-toggle:hover {
  color: var(--c-accent);
  background: rgba(224, 193, 248, 0.2);
}

/* Password Strength */
.password-strength {
  margin-top: -0.5rem;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: #ff4757;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--c-text-muted);
  transition: color 0.3s ease;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #ff85a2;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  padding: 0.25rem;
}

.password-toggle:hover {
  color: #ff6b9d;
  transform: scale(1.1);
}

/* Input Underline Animation */
.input-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff85a2, #ff6b9d);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.auth-form input:focus ~ .input-underline {
  width: 100%;
}

/* Password Strength */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 3px;
  background: rgba(255, 133, 162, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff85a2, #ff6b9d);
  transition: all 0.3s ease;
  width: 0%;
}

.strength-text {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
  display: block;
}

/* Auth Actions */
.auth-actions {
  margin-top: 0.5rem;
}

.btn-primary {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #ff85a2, #ff6b9d);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 133, 162, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 133, 162, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover .btn-glow {
  left: 100%;
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: 1rem;
}

.forgot-link {
  color: #ff85a2;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  color: #ff6b9d;
  text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 133, 162, 0.3), transparent);
}

.auth-divider span {
  background: rgba(255, 255, 255, 0.85);
  padding: 0 1rem;
  color: #ff85a2;
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}

/* Auth Switch */
.auth-switch {
  text-align: center;
  margin-top: 1rem;
}

.auth-switch p {
  color: #9ca3af;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.switch-link {
  color: #ff85a2;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.switch-link:hover {
  color: #ff6b9d;
  transform: translateY(-1px);
}

.switch-link i {
  font-size: 0.75rem;
}

/* Upload Container Styles */
.upload-container {
  position: relative;
  width: 100%;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px dashed rgba(130, 216, 231, 0.3);
  border-radius: 16px;
  background: rgba(130, 216, 231, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 100px;
}

.upload-label:hover {
  border-color: var(--c-primary);
  background: rgba(130, 216, 231, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(130, 216, 231, 0.2);
}

.upload-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.upload-label:hover .upload-icon {
  color: var(--c-primary);
  transform: scale(1.05);
}

.upload-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.upload-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Additional Mobile Styles */
@media (max-width: 768px) {
  .auth-title {
    font-size: 1.75rem;
  }

  .auth-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .input-group {
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .upload-label {
    padding: 1.5rem;
  }

  .upload-icon {
    font-size: 1.5rem;
  }

  .auth-form {
    gap: 1rem;
  }
  
  .avatar {
    width: 70px;
    height: 70px;
  }
  
  .floating-circle {
    opacity: 0.05;
  }
  
  .circle-1 {
    width: 80px;
    height: 80px;
  }
  
  .circle-2 {
    width: 60px;
    height: 60px;
  }
  
  .circle-3 {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
  }
  
  .auth-title {
    font-size: var(--font-size-xl);
  }
  
  .auth-form input {
    padding: 0.875rem 0.875rem 0.875rem 2.5rem;
  }
  
  .input-icon {
    left: 0.75rem;
    font-size: var(--font-size-base);
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
  }
}

/* Email Verification Styles */
.verification-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.verification-icon i {
  font-size: 4rem;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: 1.5rem;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-info-card {
  background: var(--c-primary-light);
  border: 1px solid var(--c-primary);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.user-info-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info-content i {
  font-size: 2rem;
  color: var(--c-primary);
}

.user-details {
  flex: 1;
}

.user-username {
  font-weight: 600;
  color: var(--c-text);
  margin: 0;
  font-size: var(--font-size-base);
}

.user-email {
  color: var(--c-text-muted);
  margin: 0;
  font-size: var(--font-size-sm);
}

.verification-steps {
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  background: var(--c-primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 0.25rem 0;
  font-weight: 600;
  color: var(--c-text);
  font-size: var(--font-size-base);
}

.step-content p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.resend-section {
  border-top: 1px solid var(--c-border);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.resend-text {
  text-align: center;
  color: var(--c-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: 1rem;
}

.help-tips {
  margin-top: 1rem;
}

.help-tips p {
  margin: 0.25rem 0;
  color: var(--c-text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.3;
}

/* Checkbox Styles */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-border);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-text {
  color: var(--c-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.terms-link {
  color: var(--c-primary);
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Google Button Styles */
.btn-google {
  background: white;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

.btn-google:hover {
  background: var(--c-surface-light);
  transform: translateY(-2px);
}

.btn-google i {
  color: #4285f4;
}