/* ============================================
   GrantVision2 Brand Styles
   Primary: Teal (#14b8a6)
   Secondary: Blue (#2563eb)
   ============================================ */

:root {
  --brand-teal: #14b8a6;
  --brand-teal-light: #5eead4;
  --brand-teal-dark: #0f766e;
  --brand-blue: #2563eb;
  --brand-blue-light: #60a5fa;
  --brand-blue-dark: #1e40af;
  --brand-gray: #1f2937;
  --brand-gray-light: #f9fafb;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
      "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
      sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
      monospace;
  }
  
  /* Logo Styles */
  .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-teal);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .brand-logo:hover {
    color: var(--brand-teal-light);
    transform: translateY(-1px);
  }
  
  .brand-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, #20c5b3 25%, var(--brand-blue) 75%, #1e40af 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    box-shadow: 
      0 4px 6px rgba(20, 184, 166, 0.4),
      0 1px 3px rgba(37, 99, 235, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .brand-logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
  }

  @keyframes shimmer {
    0%, 100% {
      transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
      transform: translateX(100%) translateY(100%) rotate(45deg);
    }
  }

  .brand-logo-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
      0 8px 12px rgba(20, 184, 166, 0.5),
      0 4px 8px rgba(37, 99, 235, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  }

  /* Fancy Logo Variants */
  .brand-logo-icon-lg {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, #20c5b3 25%, var(--brand-blue) 75%, #1e40af 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -1px;
    box-shadow: 
      0 8px 16px rgba(20, 184, 166, 0.5),
      0 4px 8px rgba(37, 99, 235, 0.4),
      inset 0 2px 0 rgba(255, 255, 255, 0.3),
      inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .brand-logo-icon-lg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
  }

  .brand-logo-icon-lg:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
      0 12px 24px rgba(20, 184, 166, 0.6),
      0 6px 12px rgba(37, 99, 235, 0.5),
      inset 0 2px 0 rgba(255, 255, 255, 0.4),
      inset 0 -4px 8px rgba(0, 0, 0, 0.15);
  }

  .brand-logo-icon-sm {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, #20c5b3 25%, var(--brand-blue) 75%, #1e40af 100%);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: -0.3px;
    box-shadow: 
      0 2px 4px rgba(20, 184, 166, 0.4),
      0 1px 2px rgba(37, 99, 235, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
  }

  .brand-logo-icon-sm::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
  }
  
  .brand-logo-text {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(20, 184, 166, 0.2);
  }

  .brand-badge {
    display: inline-block;
    background: var(--brand-teal);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
    vertical-align: super;
    margin-left: 0.25rem;
  }
  
  .App {
    text-align: left;
  }
  
  .App-logo {
    height: 40vmin;
    pointer-events: none;
  }
  
  .App-header {
    background-color: var(--brand-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: calc(10px + 2vmin);
    color: white;
  }
  
  .App-link {
    color: var(--brand-teal);
  }

  .App-link:hover {
    color: var(--brand-teal-light);
  }
  
  .heart {
    color: #ff0000;
  }
  
  .small {
    font-size: 0.75rem;
  }

  .auth-card {
    width: 100%;
    max-width: 420px;
  }

  /* Brand-themed buttons */
  .btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-blue) 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(20, 184, 166, 0.3);
  }

  .btn-brand-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(20, 184, 166, 0.4);
  }

  /* Document export watermark */
  .document-header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .document-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, #20c5b3 25%, var(--brand-blue) 75%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    box-shadow: 
      0 6px 12px rgba(20, 184, 166, 0.4),
      0 2px 6px rgba(37, 99, 235, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
  }

  .document-logo-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 40%;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.05)
    );
    border-radius: 12px 12px 0 0;
  }

  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
  }

  .auth-form input,
  .auth-form button,
  .button-link {
    border-radius: 6px;
    border: 1px solid #cccccc;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
  }

  .auth-form button,
  .button-link {
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: black;
    background-color: white;
  }

  .error-text {
    color: #ffcccb;
    font-size: 0.9rem;
  }
