/**
 * User Login/Registration Tabs Styling
 * Matches CAGP design for anonymous user login/registration interface
 */

.cagp-user-tabs-wrapper {
  margin: 20px 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cagp-user-tabs {
  position: relative;
}

.cagp-tab-header {
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 15px 20px;
  border-radius: 5px 5px 0 0;
}

.cagp-tab-notice {
  color: #666;
  font-weight: bold;
  margin: 0;
}

.cagp-tabs-nav {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.cagp-tabs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.cagp-tab-item {
  margin: 0;
  padding: 0;
  border-right: 1px solid #ddd;
}

.cagp-tab-item:last-child {
  border-right: none;
}

.cagp-tab-link {
  display: block;
  padding: 15px 25px;
  color: #0073aa;
  text-decoration: none;
  background: #f8f9fa;
  border: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cagp-tab-link:hover {
  background: #e9ecef;
  color: #005177;
  text-decoration: none;
}

.cagp-tab-item.active .cagp-tab-link {
  background: #fff;
  color: #333;
  border-bottom: 3px solid #0073aa;
  position: relative;
}

.cagp-tab-content {
  padding: 20px;
}

.cagp-tab-pane {
  display: none;
}

.cagp-tab-pane.active {
  display: block;
}

.cagp-tab-pane-content {
  max-width: 400px;
}

/* Login form styling */
#login-tab .user-login-form {
  margin: 0;
}

#login-tab .form-item {
  margin-bottom: 15px;
}

#login-tab .form-item label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

#login-tab input[type="text"],
#login-tab input[type="password"],
#login-tab input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
}

#login-tab .form-actions {
  margin-top: 20px;
}

#login-tab input[type="submit"] {
  background: #0073aa;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

#login-tab input[type="submit"]:hover {
  background: #005177;
}

/* Registration tab styling */
.registration-form-container {
  max-width: 500px;
}

.registration-form-container p {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.5;
}

.registration-btn {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.registration-btn:hover {
  background: #218838;
  color: white;
  text-decoration: none;
}

.registration-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  border-left: 4px solid #28a745;
}

.registration-info h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.registration-info ul {
  margin: 0;
  padding-left: 20px;
}

.registration-info li {
  margin-bottom: 8px;
  color: #555;
}

/* Responsive design */
@media (max-width: 768px) {
  .cagp-tabs-list {
    flex-direction: column;
  }
  
  .cagp-tab-item {
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
  
  .cagp-tab-item:last-child {
    border-bottom: none;
  }
  
  .cagp-tab-link {
    text-align: center;
  }
  
  .cagp-tab-content {
    padding: 15px;
  }
  
  .cagp-tab-pane-content {
    max-width: none;
  }
}

/* Integration with existing CAGP styles */
.cagp-user-tabs-wrapper .form-item {
  margin-bottom: 1em;
}

.cagp-user-tabs-wrapper .description {
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
}

/* Request new password link styling */
.cagp-user-tabs-wrapper .item-list ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.cagp-user-tabs-wrapper .item-list li {
  margin: 0;
}

.cagp-user-tabs-wrapper .item-list a {
  color: #0073aa;
  text-decoration: none;
  font-size: 0.9em;
}

.cagp-user-tabs-wrapper .item-list a:hover {
  text-decoration: underline;
}
