/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Define CSS custom properties */
:root {
  --primary-color: #4285F4;
  --primary-light: #66a1f2;  /* A lighter complementary blue */
  --primary-hover: #357ae8;  /* A slightly darker blue for hover/focus */
  --font-family: 'Open Sans', sans-serif;
  --background-color: #f9fbfc;
  --text-color: #333333;
  --label-color: #333333;
  --input-border: #cccccc;
  --input-focus-shadow: rgba(66, 133, 244, 0.2); /* Matches primary color */
}

/* Hide the built-in reveal/clear icons in Edge/IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
display: none !important;
width: 0;
height: 0;
}
/* If a browser-specific pseudo-element appears (varies by browser) */
input[type="password"]::-webkit-textfield-decoration-container {
display: none !important;
}

/* Global Styles */
body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 1rem;
}

/* Signup Container */
.signup-container {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

/* Logo */
.logo-container {
  margin-bottom: 7px;
}

.signup-logo {
  max-width: 100px; /* Increased size for prominence */
  height: auto;
}

/* Form */
.signup-form h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.signup-form .tagline {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--label-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px var(--input-focus-shadow);
}

/* Password Toggle */
.password-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #a8a5a9; /* Light grey color */
}

/* Helper Text */
.form-group small {
  font-size: 0.8rem;
  color: #666666;
}

/* .div-small{
  margin-top: 3px;
  height: 40px;          
  line-height: 20px;     
  color: red;            
  font-size: 14px;       
  overflow: hidden;      
} */

/* Checkbox Group */
.checkbox-group label {
  font-size: 0.85rem;
  color: var(--label-color);
  cursor: pointer;
}

.checkbox-group a {
  color: var(--primary-color);
  text-decoration: none;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Button */
.btn-submit {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  width: 100%;
}

.btn-submit:hover {
  background: linear-gradient(90deg, var(--primary-hover), var(--primary-color));
  transform: scale(1.05);
}

/* Error Message */
.error-message {
  color: #D8000C; /* Deep red for better readability */
  background-color: #FFD2D2; /* Light red background for contrast */
  border: 1px solid #D8000C; /* Subtle border */
  padding: 10px;
  border-radius: 5px; /* Rounded corners */
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .signup-container {
    padding: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .signup-container {
    width: 90%;
  }
}
