:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --white: #ffffff;
    --border-radius: 10px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  /* Base Styles (unchanged structure, enhanced visuals) */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  }
  
  body {
    background-color: #f5f9ff;
    color: var(--dark);
    line-height: 1.6;
  }
  
  /* Auth Container - Modern Card */
  .auth-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Tabs - More Modern */
  .auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  
  .tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    position: relative;
    transition: var(--transition);
  }
  
  .tab-btn.active {
    color: var(--primary);
  }
  
  .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
  }
  
  /* Forms - More Spacious */
  .auth-form {
    display: none;
  }
  
  .auth-form.active {
    display: block;
  }
  
  h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-align: center;
    font-weight: 700;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
  }
  
  input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
  }
  
  input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  }
  
  /* Buttons - More Modern */
  .btn {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(67, 97, 238, 0.2);
  }
  
  .btn:active {
    transform: translateY(0);
  }
  
  /* Error Messages */
  .error-message {
    color: var(--danger);
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background-color: rgba(247, 37, 133, 0.08);
  }
  
  /* Dashboard - Enhanced */
  .dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .user-info img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--light);
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
  }
  
  .logout-btn {
    padding: 0.5rem 1rem;
    background-color: var(--danger);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
  }
  
  .logout-btn:hover {
    background-color: #d91a6a;
  }
  
  /* Stats Cards - Modern */
  .stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .card h3 {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .card p {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
  }
  
  /* Check-in Button - More Prominent */
  .checkin-btn {
    display: block;
    width: 220px;
    margin: 2rem auto;
    padding: 1rem;
    font-size: 1.125rem;
    background-color: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(76, 201, 240, 0.3);
    text-align: center;
  }
  
  .checkin-btn:hover {
    background-color: #3ab4d9;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(76, 201, 240, 0.4);
  }
  
  .checkin-btn.checked-in {
    background-color: var(--danger);
    box-shadow: 0 4px 6px rgba(247, 37, 133, 0.3);
  }
  
  .checkin-btn.checked-in:hover {
    background-color: #d91a6a;
    box-shadow: 0 6px 8px rgba(247, 37, 133, 0.4);
  }
  
  /* Check-in Page - Enhanced */
  .checkin-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .checkin-time {
    font-size: 3rem;
    margin: 1rem 0;
    color: var(--dark);
    font-weight: 700;
    font-feature-settings: "tnum";
  }
  
  .checkin-date {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.125rem;
  }
  
  .checkin-status {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-block;
  }
  
  .status-present {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
  }
  
  .status-late {
    background-color: rgba(248, 150, 30, 0.15);
    color: #f8961e;
  }
  
  .status-absent {
    background-color: rgba(247, 37, 133, 0.15);
    color: #f72585;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .auth-container, .checkin-container {
      margin: 1rem;
      padding: 1.5rem;
    }
    
    .stats-cards {
      grid-template-columns: 1fr;
    }
    
    .header {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .logout-btn {
      width: 100%;
    }
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .auth-container, .dashboard, .checkin-container {
    animation: fadeIn 0.4s ease-out forwards;
  }
  
  /* Loading States */
  .loading {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    color: transparent;
  }
  
  .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  :root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #3f37c9;
    --danger: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f5f9ff;
    color: var(--dark);
    line-height: 1.6;
    padding: 20px;
}

/* Auth Container */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-header h1 {
    color: var(--dark);
    font-weight: 700;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: var(--gray);
}

.input-with-icon .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.input-with-icon .toggle-password:hover {
    color: var(--dark);
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 40px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(67, 97, 238, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Error Messages */
.error-message {
    color: var(--danger);
    margin-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    background-color: rgba(247, 37, 133, 0.08);
}

/* Admin Note */
.admin-note {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background-color: rgba(67, 97, 238, 0.08);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.875rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: center;
    }
}
