/* Shared auth layout — login.html, admin-login.html, kurumsal-login.html */

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

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  padding: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.75rem;
}

.logo img {
  height: auto;
  display: block;
  max-width: 240px;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
}

.type-nav {
  display: flex;
  background: var(--gray-light);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 4px;
}

.type-nav a {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.25rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.2s;
}

.type-nav a.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.type-nav a i {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 0.9rem;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.875rem 0.7rem 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}

select.form-input {
  appearance: none;
  cursor: pointer;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  padding: 4px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  cursor: pointer;
}

.btn {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.divider {
  text-align: center;
  position: relative;
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--gray);
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #e2e8f0;
}

.divider::before {
  left: 0;
}
.divider::after {
  right: 0;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: all 0.2s;
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.alert {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  align-items: center;
  gap: 8px;
}

.alert.active {
  display: flex;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
