/* ==========================================================================
   Şahinler Züccaciye - Çekiliş Sistemi
   Google Minimalist & Kurumsal Tasarım Sistemi (Google Material You / Modern)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Google+Sans:wght@400;500;700&display=swap');

:root {
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Google Sans', 'Roboto', sans-serif;

  /* Google Color Palette */
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --border-card: #dadce0;
  
  --google-blue: #1a73e8;
  --google-blue-hover: #1557b0;
  --google-blue-active: #174ea6;
  --google-blue-bg: #e8f0fe;

  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-tertiary: #70757a;

  --input-border: #dadce0;
  --input-border-hover: #202124;
  --input-focus: #1a73e8;
  --input-bg: #ffffff;

  --error-color: #d93025;
  --error-bg: #fce8e6;

  --radius-card: 28px;
  --radius-input: 4px;
  --radius-btn: 20px;

  --shadow-card: 0 1px 3px rgba(60, 64, 67, 0.08), 0 4px 8px 3px rgba(60, 64, 67, 0.04);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Auth Page Layout */
.g-auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px 16px;
}

/* Google Style Login Card */
.g-auth-card {
  width: 100%;
  max-width: 448px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 40px 36px 36px 36px;
  box-shadow: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 601px) {
  .g-auth-card {
    border: 1px solid var(--border-card);
  }
}

/* Brand Header */
.g-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.g-logo-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--google-blue-bg);
  color: var(--google-blue);
  border-radius: 50%;
}

.g-brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3333;
}

.g-brand-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
}

/* Alert Notification */
.g-alert {
  padding: 12px 16px;
  border-radius: 8px;
  background-color: var(--error-bg);
  color: var(--error-color);
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

/* Form Controls */
.g-form-group {
  position: relative;
  margin-bottom: 20px;
}

.g-input-field {
  width: 100%;
  height: 54px;
  padding: 16px;
  font-size: 16px;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.g-input-field:hover {
  border-color: var(--input-border-hover);
}

.g-input-field:focus {
  border-color: var(--input-focus);
  border-width: 2px;
  padding: 15px; /* Adjust for 2px border */
}

/* Outlined Floating Label Effect */
.g-floating-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  padding: 0 4px;
  color: var(--text-secondary);
  font-size: 16px;
  pointer-events: none;
  transition: 0.15s ease all;
}

.g-input-field:focus ~ .g-floating-label,
.g-input-field:not(:placeholder-shown) ~ .g-floating-label {
  top: 0;
  font-size: 12px;
  color: var(--google-blue);
  font-weight: 500;
}

.g-input-field:not(:focus):not(:placeholder-shown) ~ .g-floating-label {
  color: var(--text-secondary);
}

/* Form Helper & Actions */
.g-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.g-link {
  color: var(--google-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  padding: 6px 8px;
  margin-left: -8px;
  transition: background-color 0.15s;
}

.g-link:hover {
  background-color: var(--google-blue-bg);
}

.g-btn-primary {
  width: 100%;
  height: 44px;
  padding: 0 24px;
  background-color: var(--google-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.g-btn-primary:hover {
  background-color: var(--google-blue-hover);
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.g-btn-primary:active {
  background-color: var(--google-blue-active);
  box-shadow: none;
}

/* Google Corporate Footer */
.g-footer {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}

.g-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.g-footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.g-footer-link:hover {
  color: var(--text-primary);
}

.g-lang-select {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  padding: 4px 8px;
  border-radius: 4px;
}

.g-lang-select:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Protected Dashboard Styles (Minimalist Google Workspace Theme) */
.g-dashboard-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.g-avatar {
  width: 36px;
  height: 36px;
  background: var(--google-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}
