/* src/Login.css */
:root {
    --primary: #911245;
    --primary-light: rgba(145, 18, 69, 0.1);
    --secondary: #72930f;
    --secondary-light: rgba(114, 147, 15, 0.1);
    --tertiary: #1560bd;
    --tertiary-light: rgba(21, 96, 189, 0.1);
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --error: #dc3545;
    --error-light: #f8d7da;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  }
  
  body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  .login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
  }
  
  .login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    z-index: -1;
  }
  
  .login-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    z-index: 1;
  }
  
  .login-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .logo-circle {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .logo-circle span {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
  }
  
  .login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .login-header .address,
  .login-header .phone {
    font-size: 1rem;
    opacity: 0.9;
  }
  
  .login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .login-box.focused {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }
  
  .login-box-header {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .login-box-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  .login-box-header p {
    color: var(--gray);
    font-size: 0.95rem;
  }
  
  .input-group {
    margin-bottom: 25px;
    position: relative;
  }
  
  .input-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
  }
  
  .input-group label svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: var(--primary);
  }
  
  .input-group input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: var(--white);
  }
  
  .input-group input:focus {
    border-color: var(--tertiary);
    outline: none;
    box-shadow: 0 0 0 3px var(--tertiary-light);
  }
  
  button {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  button:hover {
    background-color: #5a7a0c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  button:active {
    transform: translateY(0);
  }
  
  button:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
    transform: none !important;
  }
  
  button svg {
    width: 20px;
    height: 20px;
  }
  
  .spinner {
    width: 20px;
    height: 20px;
    animation: rotate 1s linear infinite;
  }
  
  .spinner circle {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
  }
  
  @keyframes rotate {
    100% {
      transform: rotate(360deg);
    }
  }
  
  @keyframes dash {
    0% {
      stroke-dasharray: 1, 150;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -35;
    }
    100% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -124;
    }
  }
  
  .error-message {
    color: var(--error);
    background-color: var(--error-light);
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .error-message svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  
  .login-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--gray);
    font-size: 0.85rem;
  }
  
  .login-footer p {
    margin-bottom: 5px;
  }
  
  .help-text {
    margin-top: 15px;
    font-size: 0.8rem;
  }
  
  .help-text a {
    color: var(--tertiary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .help-text a:hover {
    text-decoration: underline;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .login-header h1 {
      font-size: 1.6rem;
    }
    
    .login-box {
      padding: 30px;
    }
    
    .login-box-header h2 {
      font-size: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .login-content {
      padding: 20px 15px;
    }
    
    .login-header h1 {
      font-size: 1.4rem;
    }
    
    .logo-circle {
      width: 60px;
      height: 60px;
    }
    
    .logo-circle span {
      font-size: 20px;
    }
    
    .login-box {
      padding: 25px 20px;
    }
    
    .input-group input {
      padding: 12px 15px;
    }
    
    button {
      padding: 13px;
    }
  }
  /* Add to FaceRegistration.css */
  
  /* Mobile-specific styles */
  @media (max-width: 768px) {
    .face-registration-container {
      padding: 20px;
      max-width: 95%;
    }
    
    .instructions-text, .requirements-list, .permission-warning {
      font-size: 0.9rem;
    }
    
    .begin-scan-button, .start-capture-button, .retry-permission-button, .upload-button {
      padding: 15px;
      font-size: 1rem;
      margin: 10px 0;
    }
    
    .camera-container {
      height: 300px;
    }
    
    .face-outline {
      width: 180px;
      height: 240px;
    }
  }
  
  /* Upload button styles */
  .fallback-option {
    margin-top: 20px;
    text-align: center;
  }
  
  .or-divider {
    margin: 15px 0;
    color: #666;
    font-weight: bold;
  }
  
  .upload-button {
    display: inline-block;
    background-color: #911245;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .upload-button:hover {
    background-color: #7a0d36;
  }
  
  /* Webcam view fixes */
  .webcam-view {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }