/* ========================================
   RESET & BASE STYLES
   ======================================== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

:root {
  /* Ana Renkler */
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #48bb78;
  --success-dark: #38a169;
  
  /* Metin Renkleri */
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-muted: #a0aec0;
  --text-placeholder: #cbd5e0;
  
  /* Arka Plan Renkleri */
  --bg-white: #ffffff;
  --bg-gray-light: #f7fafc;
  --bg-input-border: #e2e8f0;
  
  /* Font */
  --font-primary: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Gölgeler */
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(102, 126, 234, 0.3);
  --shadow-lg: 0 30px 60px rgba(0,0,0,0.12);
  --shadow-xl: 0 15px 30px rgba(102, 126, 234, 0.4);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  /* Spacing */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 35px;
  --space-xl: 50px;
}

/* ========================================
   BODY & LAYOUT
   ======================================== */
body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ========================================
   LOGIN CONTAINER
   ======================================== */
.login-container {
  width: 100%;
  max-width: 460px;
  background: var(--bg-white);
  padding: var(--space-xl) 45px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease;
}

/* ========================================
   LOGO & HEADER
   ======================================== */
.logo-wrapper {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow-md);
  animation: float 3s ease-in-out infinite;
}

h1 {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-family: var(--font-primary);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

/* ========================================
   TABS
   ======================================== */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  background: var(--bg-gray-light);
  padding: var(--space-xs);
  border-radius: var(--radius-lg);
}

.tab-btn {
  font-family: var(--font-primary);
  padding: 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--bg-white);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-field {
  margin-bottom: var(--space-md);
}

label {
  font-family: var(--font-primary);
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

input {
  font-family: var(--font-primary);
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 2px solid var(--bg-input-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all 0.3s ease;
  background: var(--bg-white);
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input::placeholder {
  color: var(--text-placeholder);
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 20px;
  user-select: none;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--text-primary);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  font-family: var(--font-primary);
  width: 100%;
  padding: 16px;
  margin-top: 25px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
  display: none !important;
}

.trial-badge {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s ease infinite;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  font-family: var(--font-primary);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 20px;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  backdrop-filter: blur(10px);
}

.footer p {
  font-size: 14px;
  opacity: 0.9;
}

.footer strong {
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
/* Tablet */
@media (max-width: 768px) {
  .login-container {
    padding: 40px 35px;
    max-width: 420px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  .logo {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }
}

/* Mobil */
@media (max-width: 480px) {
  body {
    padding: 15px;
    align-items: flex-start;
    padding-top: 40px;
  }
  
  .login-container {
    padding: 30px 25px;
    border-radius: 16px;
  }
  
  h1 {
    font-size: 26px;
  }
  
  .subtitle {
    font-size: 14px;
  }
  
  .logo {
    width: 65px;
    height: 65px;
    font-size: 32px;
  }
  
  .tabs {
    gap: 8px;
    padding: 5px;
  }
  
  .tab-btn {
    padding: 12px;
    font-size: 14px;
  }
  
  input {
    padding: 12px 14px 12px 42px;
    font-size: 14px;
  }
  
  .btn-primary {
    padding: 14px;
    font-size: 15px;
  }
  
  .footer {
    padding: 15px;
  }
  
  .footer p {
    font-size: 12px;
  }
}