/**
 * Google Auth Admin Service - Main Stylesheet
 */

/* ===== CSS Variables ===== */
:root {
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;

  --primary: #4285f4;
  --success: #34a853;
  --warning: #fbbc05;
  --danger: #ea4335;
  --secondary: #5f6368;

  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;

  --border-radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 70%;
  margin: 0 auto;
}

/* ===== Auth Card ===== */
.auth-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  text-align: center;
}

.auth-card .logo {
  margin-bottom: 24px;
  animation: fadeInDown 0.5s ease-out;
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.auth-card p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ===== Status Box ===== */
.status-box {
  background: #f1f3f4;
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.status-box.success {
  background: #e6f4ea;
  border: 1px solid var(--success);
}

.status-box .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.status-box.success .icon {
  color: var(--success);
}

.status-box h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}

/* ===== Permissions Box ===== */
.permissions-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.permissions-box h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.permissions-box ul {
  list-style: none;
  padding: 0;
}

.permissions-box li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Warning Box ===== */
.warning-box {
  background: #fef7e0;
  border: 1px solid var(--warning);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}

.warning-box p {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.warning-box ul {
  margin: 12px 0;
  padding-left: 20px;
}

.warning-box li {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.warning-icon svg {
  width: 64px;
  height: 64px;
  color: var(--warning);
  margin-bottom: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #1a73e8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f1f3f4;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #e8eaed;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #d33426;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
}

.button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== Alerts ===== */
.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #e6f4ea;
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-error {
  background: #fce8e6;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.alert-warning {
  background: #fef7e0;
  color: #f9ab00;
  border: 1px solid var(--warning);
}

/* ===== Success Animation ===== */
.success-animation {
  margin-bottom: 24px;
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  animation: scaleIn 0.5s ease-out;
}

.checkmark-circle {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes stroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

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

/* ===== Footer Links ===== */
.footer-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8eaed;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  margin: 0 8px;
}

/* ===== Legal Pages ===== */
.legal-page {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-page .updated-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-page section {
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-page h3 {
  font-size: 18px;
  margin-bottom: 12px;
  margin-top: 20px;
  color: var(--text-secondary);
}

.legal-page p {
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-page ul {
  margin: 12px 0 12px 24px;
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-page a {
  color: var(--primary);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ===== Text Utilities ===== */
.text-muted {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .auth-card {
    padding: 24px;
  }

  .auth-card h1 {
    font-size: 24px;
  }

  .legal-page {
    padding: 24px;
  }

  .legal-page h1 {
    font-size: 28px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
