@import 'mobile-enhancements.css';

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FDF6EC 0%, #F5E6D3 100%);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(161, 140, 209, 0.08) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.auth-container {
  display: grid;
  grid-template-columns: 58% 42%;
  max-width: 1100px;
  width: 100%;
  min-height: 680px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
}

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


.auth-form-container {
  padding: var(--space-12) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow-y: auto;
}

.auth-form-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.auth-form-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-6);
  width: 100%;
}

.auth-form-logo-box {
  width: 90px;
  height: 90px;
  background: #FFFFFF;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.auth-form-logo-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}

.auth-form-logo-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  padding: 0;
}

.auth-form-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.auth-form-subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.5;
}


.auth-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-form .form-group {
  margin-bottom: var(--space-6);
}

.auth-form .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.2px;
}

.auth-form .form-label.required::after {
  content: " *";
  color: var(--color-danger);
}

.auth-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form .input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 var(--space-5);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 2px rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-form .input::placeholder {
  color: var(--color-text-light);
  font-weight: 400;
}

.auth-form .input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 4px 16px rgba(161, 140, 209, 0.15),
    0 0 0 4px rgba(161, 140, 209, 0.08),
    inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
}

.auth-form .input-icon {
  position: absolute;
  left: var(--space-4);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: color 0.3s ease;
}

.auth-form .input:focus + .input-icon,
.auth-form .input-wrapper:focus-within .input-icon {
  color: var(--color-primary);
}

.auth-form .input-password-toggle {
  position: absolute;
  right: var(--space-4);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
}

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

.auth-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  font-size: 14px;
}

.auth-form-options .checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  color: var(--color-text);
  font-weight: 500;
}

.auth-form-options .checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.auth-form-options .form-help {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-form-options .form-help:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

.auth-form .btn-primary {
  width: 100%;
  height: 56px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  border-radius: 16px;
  box-shadow: 
    0 4px 16px rgba(161, 140, 209, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: var(--space-5);
  letter-spacing: 0.2px;
}

.auth-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(161, 140, 209, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.auth-form .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.auth-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-form-footer {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.auth-form-footer a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-form-footer a:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}


.auth-side {
  padding: var(--space-12) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.auth-side::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.auth-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
  width: 100%;
}

.auth-logo-box {
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.auth-logo-box:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.auth-logo-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  padding: 0;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: var(--space-4);
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.auth-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: var(--space-8);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  max-width: 320px;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
}

.auth-features li:last-child {
  margin-bottom: 0;
}

.auth-features li i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}


.auth-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 58%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(161, 140, 209, 0.15) 20%,
    rgba(161, 140, 209, 0.15) 80%,
    transparent 100%
  );
  z-index: 1;
}


.auth-form-container .alert {
  max-width: 420px;
  margin: 0 auto var(--space-6);
  border-radius: 14px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form-container .alert-error {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border: 1px solid rgba(255, 77, 79, 0.2);
}

.auth-form-container .alert-success {
  background: var(--color-success-soft);
  color: var(--color-success);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.auth-form-container .alert-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-form-container .alert-content {
  flex: 1;
}

.auth-form-container .alert-message {
  margin: 0;
  line-height: 1.5;
}


.auth-form .form-help {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: 1.4;
}


.password-strength {
  margin-top: var(--space-3);
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-weak {
  width: 33%;
  background: var(--color-danger);
}

.password-strength-medium {
  width: 66%;
  background: var(--color-warning);
}

.password-strength-strong {
  width: 100%;
  background: var(--color-success);
}

 

@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    min-height: auto;
  }

  .auth-container::after {
    display: none;
  }

  .auth-side {
    padding: var(--space-8) var(--space-6);
    min-height: 200px;
  }

  .auth-logo-box {
    width: 80px;
    height: 80px;
  }

  .auth-logo-icon {
    width: 48px;
    height: 48px;
  }

  .auth-title {
    font-size: 22px;
    margin-bottom: var(--space-3);
  }

  .auth-description {
    font-size: 14px;
    margin-bottom: var(--space-6);
  }

  .auth-features {
    max-width: 100%;
  }

  .auth-features li {
    font-size: 14px;
    margin-bottom: var(--space-3);
  }

  .auth-form-container {
    padding: var(--space-8) var(--space-6);
  }

  .auth-form {
    max-width: 100%;
  }

  .auth-form .input {
    height: 52px;
  }

  .auth-form .btn-primary {
    height: 52px;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding: var(--space-2);
  }

  .auth-container {
    border-radius: 24px;
  }

  .auth-form-container {
    padding: var(--space-6) var(--space-4);
  }

  .auth-form-title {
    font-size: 24px;
  }

  .auth-form-subtitle {
    font-size: 14px;
  }

  .auth-form .input {
    height: 50px;
    font-size: 14px;
  }

  .auth-form .btn-primary {
    height: 50px;
    font-size: 15px;
  }

  .auth-side {
    padding: var(--space-6) var(--space-4);
  }
}
