/* General Reset */
body, h1, h2, h3, p, ul, ol, li, form, input, button, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling with Improved Pattern */
body {
    /* Base background color */
    background-color: #f4f4f4;
    
    /* Rotated squares pattern with gradient overlay */
    background-image: 
        linear-gradient(to bottom, rgba(244, 244, 244, 0.8) 0%, rgba(255, 255, 255, 1) 100%),
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0),
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 20px 20px;
    background-attachment: fixed;
    
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
}

/* Header and Navigation */
header {
    background-color: #414758;
    color: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.auth-nav-links {
    display: flex;
    gap: 1.5rem;
}

.auth-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.auth-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Auth Container (Login & Register) */
.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern to container */
.auth-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6C567B, #9A8C98, #6C567B);
}

.auth-container h2 {
    color: #414758;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #414758;
}

.form-group input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus {
    border-color: #9A8C98;
    outline: none;
    box-shadow: 0 0 0 3px rgba(154, 140, 152, 0.2);
    background-color: white;
}

/* Button Styling */
.primary-button {
    width: 100%;
    padding: 0.8rem;
    background-color: #9A8C98;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary-button:hover {
    background-color: #6C567B;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #9A8C98;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #6C567B;
    text-decoration: underline;
}

/* Password Requirements Styling */
.password-container {
    position: relative;
    margin-bottom: 1.2rem;
}

.password-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #9A8C98;
}

.toggle-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.toggle-icon.open {
    transform: rotate(180deg);
}

.password-requirements {
    display: none;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    font-size: 0.8rem;
}

.password-requirements.show {
    display: block;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.requirement-icon {
    margin-right: 8px;
    font-size: 1rem;
}

.requirement-text {
    font-size: 0.85rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .auth-container {
        padding: 1.5rem;
        width: 100%;
    }
    
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .auth-nav-links {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-nav-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .auth-nav-links a {
        width: 100%;
        text-align: center;
    }
}

/* Footer Styling */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #666;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid #e0e0e0;
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .copyright {
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .footer-note {
    font-size: 0.8rem;
    color: #888;
  }
  
  @media (max-width: 768px) {
    .copyright {
      font-size: 0.8rem;
    }
    
    .footer-note {
      font-size: 0.75rem;
    }
  }