:root {
  /* Colors */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

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

/* Box Container */
.box {
  width: 320px;
  margin: 0;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
@media screen and (max-width: 350px) {
  .box {
    width: 300px;
  }
}

@media screen and (max-width: 320px) {
  .box {
    width: 250px;
  }
}
.box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 10px 40px -15px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
}

.form h2 {
  /* margin-bottom: 0.5rem; */
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.include {
  color: var(--gray-700);
  text-align: center;
  padding: 0px;
}
/* Input Styles */
.inputbox {
  width: 100%;
}

.inputbox p,
.terms-text {
  display: flex;
  flex-direction: row;
  margin: 0.25rem 0 0.25rem 0.25rem;

  color: var(--gray-700);
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 5px 10px;
  margin: 0;
  font-size: 14px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: none;
  box-sizing: border-box;
  color: var(--gray-900);
  background-color: white;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.input:hover {
  border-color: var(--primary-light);
}

.inputbox select.input {
  appearance: none;
  background-color: #fff;
  cursor: pointer;
}

.inputbox select.input:focus {
  border-color: #4caf50;
  outline: none;
}

/* Checkbox Styles */
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox label {
  color: var(--gray-700);
  cursor: pointer;
}

.terms-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
}
.checkbox-wrapper {
  display: flex;
  flex-direction: column;
}
.checkboxtext {
  display: flex;
  flex-direction: row;
}
.terms-link {
  align-self: center;
}

/* Link Styles */
.form a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.form a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.file_name {
  color: var(--primary);

  cursor: pointer;
  transition: var(--transition);
}

/* Table Styles */
.tablewide {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.table-row {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: var(--transition);
}

.table-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.table-cell {
  padding: 0.75rem;
  color: var(--gray-700);
}

.table-cell span {
  display: block;
  color: var(--gray-900);

  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Email Overflow */
.email {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-all;
}

/* Message Styles */
.warning,
.include {
  color: var(--gray-700);
  text-align: center;
  padding: 0; /* Set padding to 0 */
}

.success {
  font-weight: 600;
  color: var(--gray-900);
}

.info0,
.info {
  padding: 0.75rem;
  color: var(--gray-700);
  text-align: left;
}

.info {
  padding-left: 2rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form {
  animation: fadeIn 0.3s ease-out;
}

/* Password Show/Hide Checkbox */
.inputbox label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  margin: 0;
}

.inputbox label .password-toggle {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.25rem;
}

.inputbox label input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.inputbox label label {
  color: var(--gray-700);
  cursor: pointer;
  white-space: nowrap;
}

.timeout-message {
  background-color: #dae5ff;
  border-left: 4px solid #1d4ed8;
  padding: 6px;
}

.timeout-message p {
  margin: 0;
  color: #1d4ed8;
}
.session-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
}

/* Session History Styles */
.session-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.session-history-table th,
.session-history-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.session-history-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.session-history-table tr:hover {
  background-color: #f5f5f5;
}

.current-session-row {
  background-color: #e8f4ff;
}

.current-session {
  color: #007bff;
  font-weight: bold;
}

.active-session {
  color: #28a745;
  font-weight: bold;
}

.logged-out-session {
  color: #6c757d;
}

.session-history-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  background-color: #fff;
}

.login-dropdown-title {
  padding: 0.5rem;
}

/* Role Dropdown Styles */
.role-dropdown {
  background-color: white;
  border: none;
  border-radius: 0.375rem;

  color: #000000;
  cursor: pointer;
  transition: var(--transition);
  width: auto;
  min-width: 120px;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.25rem 0.5rem;
}

.role-dropdown:hover {
  border-color: var(--primary-light);
}

.role-dropdown:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.role-dropdown option {
  width: max-content;
  min-width: 120px;
  background-color: hsl(0, 0%, 100%, 0.95);
  color: var(--primary);
  flex-direction: column;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  z-index: 100;
  border: 1px solid rgba(242, 155, 155);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 0.5rem 0.75rem;
  font-weight: 500;

  border: none;
  cursor: pointer;
  text-wrap: nowrap;
  white-space: nowrap;
}

/* Form heading with dropdown */
.form h2 {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-900);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Existing session box styling */
.existing-session-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.existing-session-box p {
  margin: 0.5rem 0;
  color: var(--gray-700);
}

/* Session Expired Styles */

.warning-message {
  color: var(--gray-900);
  margin: 10px;
  max-width: 350px;
}

.device-info {
  color: var(--gray-900);
  margin: 5px;
  background-color: #dadcde;

  padding: 0.5rem;
}

.session-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
