/**
 * AUTH PAGES - PROFESSIONAL & CLEAN
 * Rakip sitelere göre yeniden tasarlandı
 */

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.auth-page {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: #F5F5F5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   LOGIN PAGE - CENTERED
   ============================================ */
.auth-center-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card-centered {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 48px;
  border: 1px solid #E0E0E0;
}

/* Brand Logo */
.auth-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.auth-brand-center:hover {
  transform: scale(1.03);
}

.auth-brand-center i {
  font-size: 36px;
  color: #E63946;
}

.auth-brand-center span {
  font-size: 26px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.5px;
}

.brand-highlight {
  color: #E63946;
  font-weight: 700;
}

/* Header */
.auth-header-center {
  text-align: center;
  margin-bottom: 36px;
}

.auth-header-center h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.auth-header-center p {
  font-size: 15px;
  color: #666666;
  font-weight: 400;
  margin: 0;
}

/* Form */
.auth-form-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
}

.form-label i {
  font-size: 14px;
  color: #E63946;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 400;
  color: #1A1A1A;
  background: #FFFFFF;
  border: 1.5px solid #D0D0D0;
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
}

.form-control:hover {
  border-color: #B0B0B0;
}

.form-control:focus {
  border-color: #E63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-control::placeholder {
  color: #999999;
  font-weight: 400;
}

/* Form Row */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #E63946;
}

.form-check-label {
  font-size: 14px;
  color: #1A1A1A;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.form-link {
  font-size: 14px;
  color: #E63946;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.form-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

.btn i {
  font-size: 18px;
}

.btn-primary {
  background: #E63946;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  background: #D32F3C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  background: transparent;
  color: #E63946;
  border: 1.5px solid #E63946;
}

.btn-outline-primary:hover {
  background: #E63946;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-lg {
  height: 52px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #999999;
  font-size: 14px;
  font-weight: 400;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E0E0E0;
}

/* Back Link */
.auth-back-center {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #F0F0F0;
}

.auth-back-center a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-back-center a:hover {
  color: #E63946;
}

/* Alerts */
.alert {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert i {
  font-size: 18px;
}

.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.alert-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

/* ============================================
   REGISTER PAGE - SPLIT LAYOUT
   ============================================ */
.auth-container {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Left Side */
.auth-left {
  padding: 40px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: #E63946;
  text-decoration: none;
  margin-bottom: 32px;
  transition: transform 0.2s ease;
}

.auth-brand:hover {
  transform: translateX(4px);
}

.auth-brand i {
  font-size: 32px;
}

.auth-left h1 {
  font-size: 38px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.auth-left p {
  font-size: 18px;
  color: #4A4A4A;
  margin-bottom: 32px;
  line-height: 1.6;
  font-weight: 400;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #1A1A1A;
  font-weight: 500;
}

.auth-feature i {
  color: #4CAF50;
  font-size: 20px;
  flex-shrink: 0;
}

/* Right Side */
.auth-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px;
  border: 1px solid #E0E0E0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.auth-header p {
  font-size: 15px;
  color: #666666;
  margin: 0;
  font-weight: 400;
}

/* Form Sections */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  padding-bottom: 24px;
  border-bottom: 1px solid #F0F0F0;
}

.form-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 20px;
}

.form-section-title i {
  color: #E63946;
  font-size: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 13px;
  color: #999999;
  font-weight: 400;
  margin-top: 4px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231A1A1A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-check-label a {
  color: #E63946;
  font-weight: 600;
  text-decoration: none;
}

.form-check-label a:hover {
  text-decoration: underline;
}

/* Footer */
.auth-footer {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #F0F0F0;
  margin-top: 24px;
}

.auth-footer p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 16px;
  font-weight: 400;
}

.auth-back {
  text-align: center;
  margin-top: 24px;
}

.auth-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-back a:hover {
  color: #E63946;
}

/* ============================================
   OTP INPUT STYLES
   ============================================ */
.otp-input-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
  background: #FFFFFF;
  border: 2px solid #D0D0D0;
  border-radius: 10px;
  transition: all 0.2s ease;
  outline: none;
}

.otp-input:hover {
  border-color: #B0B0B0;
}

.otp-input:focus {
  border-color: #E63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.otp-resend {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #F0F0F0;
}

.otp-resend p {
  font-size: 14px;
  color: #666666;
  margin-bottom: 12px;
  font-weight: 400;
}

.otp-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #E63946;
  font-weight: 600;
  margin-top: 12px;
}

.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .auth-left {
    display: none;
  }
  
  .auth-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  body.auth-page {
    padding: 16px;
  }
  
  .auth-card-centered,
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-header-center h2,
  .auth-header h2 {
    font-size: 24px;
  }
  
  .auth-left h1 {
    font-size: 32px;
  }
  
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    height: 48px;
    font-size: 15px;
  }
  
  .btn-lg {
    height: 50px;
  }
}
