
.accounts-content-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-background);
    padding: 2rem 1rem; /* Add padding to ensure content doesn't touch edges */
    box-sizing: border-box; /* Ensure padding is included in height calculation */
}

 
  .accounts-content-wrapper .card {
    background: var(--surface-base);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    position: relative;
  }
 
  .accounts-content-wrapper .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
  .accounts-content-wrapper .card-header {
    background: transparent;
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    text-align: center;
  }

  .accounts-content-wrapper .card-body {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  }

  .accounts-logo {
    max-height: 120px;
    max-width: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
    color: var(--primary);
  }
  .accounts-logo svg {
    width: 100%;
    height: auto;
    max-height: 60px; /* Adjust this value to control the logo's maximum height */
    fill: currentColor; /* This will make the SVG use the parent's text color */
}



.auth-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-subtitle {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}


/* Enhanced form field styling */
.enhanced-form-field {
    position: relative;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.enhanced-form-field input {
    width: 100%;
    height: 56px;
    padding: 1rem;
    border: 2px solid var(--black);
    border-radius: 28px;
    background: var(--surface-base);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    outline: none;
    box-sizing: border-box;
}

.enhanced-form-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

.enhanced-form-field input::placeholder {
    color: transparent;
}

.enhanced-form-field label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    background: transparent;
    padding: 0 0.25rem;
}

/* Float label when input has value OR is focused */
.enhanced-form-field input:focus + label,
.enhanced-form-field input:not(:placeholder-shown) + label,
.enhanced-form-field input[data-has-value="true"] + label {
    top: 0;
    left: 0.75rem;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--surface-base);
    padding: 0 0.5rem;
}

/* Error styling */
.enhanced-form-field input.is-invalid {
    border-color: var(--warning);
    box-shadow: 0 0 0 3px rgba(var(--warning), 0.1);
}

/* Fix label positioning for invalid fields - only float when there's content */
.enhanced-form-field input.is-invalid:not(:placeholder-shown) + label,
.enhanced-form-field input.is-invalid[data-has-value="true"] + label {
    top: 0;
    left: 0.75rem;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--surface-base);
    padding: 0 0.5rem;
}

.invalid-feedback {
    color: var(--warning);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
    margin-top: 4px;
}

.input-label-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* for label positioning if needed */
    width: 100%;
}

.password-requirements {
    background: var(--md-sys-color-surface-container-low);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom:1.5rem;
    border-left: 3px solid var(--primary);
    font-size: 0.75rem;
}

.password-requirements h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.password-requirements ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-requirements li {
    color: var(--primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Email exists help section styling */
.email-exists-help {
    background: var(--surface-container);
    border-radius: 12px;
    padding: 1rem;
    border-left: 3px solid var(--primary);
}

.btn-auth-primary {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, var(--secondary) 20%) 100%);
    border: none;
    border-radius: 25px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary), 0.4);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 90%, white 10%) 0%, color-mix(in srgb, var(--primary) 70%, var(--secondary) 30%) 100%);
    color: var(--text-light);
}

.btn-auth-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
}   

.btn-auth-secondary {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-auth-secondary:hover {
    background: var(--surface-container);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--black);
    z-index: 1;
}

.auth-divider span {
    background: var(--surface-base);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
   
}

.forgot-password {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Animation for form load */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    animation: slideInUp 0.5s ease-out;
}
